Skip to content

Commit

Permalink
device_state_attributes -> extra_state_attributes
Browse files Browse the repository at this point in the history
This should fix an error on HA 2021.12+
  • Loading branch information
gieljnssns authored Dec 4, 2021
1 parent 42dcb0b commit 104252b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/buienalarm/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def icon(self) -> str:
return self._sensor_type.icon

@property
def device_state_attributes(self) -> Mapping[str, Any]:
def extra_state_attributes(self) -> Mapping[str, Any]:
"""Return state attributes."""
attr = {
ATTR_ATTRIBUTION: ATTRIBUTION,
Expand Down

0 comments on commit 104252b

Please sign in to comment.