Skip to content

Commit

Permalink
Update sensor.py
Browse files Browse the repository at this point in the history
Change to extra_state_attributes
  • Loading branch information
tyjtyj committed May 16, 2022
1 parent 168fca4 commit 46a2b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sgnea/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def state(self):
return self._state

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the state attributes of the forecast."""
if self._24Hforecast is not None:
return {
Expand Down

0 comments on commit 46a2b3d

Please sign in to comment.