Skip to content

Commit 14e7a3f

Browse files
authored
Return sensor state. (#58)
1 parent 3f92755 commit 14e7a3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

custom_components/feedparser/sensor.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ def update(self):
131131
] = "https://www.home-assistant.io/images/favicon-192x192-full.png"
132132

133133
self._entries.append(entry_value)
134+
135+
@property
136+
def state(self):
137+
"""Return the state of the sensor."""
138+
return self._attr_state
139+
134140
@property
135141
def extra_state_attributes(self):
136142
return {"entries": self._entries}

0 commit comments

Comments
 (0)