Skip to content

Commit

Permalink
Merge pull request #40 from Lemocin/master
Browse files Browse the repository at this point in the history
Fix device_state_attributes warnings in HA 2021.12
  • Loading branch information
FL550 authored Jan 7, 2022
2 parents 75ad434 + 432831c commit e87240f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/dwd_weather/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def device_class(self):
return SENSOR_TYPES[self._type][1]

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the state attributes of the device."""
attributes = {}

Expand Down
2 changes: 1 addition & 1 deletion custom_components/dwd_weather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ def forecast(self):
return self._connector.forecast

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return data validity infos."""
return self._connector.infos

0 comments on commit e87240f

Please sign in to comment.