Skip to content

Commit 5ffda91

Browse files
raw99iantrich
andauthored
Sensor property fix (#54)
device_state_attributes is deprecated and needs to be changed to extra_state_attributes Co-authored-by: Ian Richardson <[email protected]>
1 parent 83e6fb3 commit 5ffda91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

custom_components/feedparser/sensor.py

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

133133
self._entries.append(entry_value)
134+
@property
135+
def extra_state_attributes(self):
136+
return {"entries": self._entries}

0 commit comments

Comments
 (0)