Skip to content

Commit

Permalink
Update sensor.py
Browse files Browse the repository at this point in the history
Adapting state attributes
  • Loading branch information
kayjei authored Jul 21, 2022
1 parent 47191d8 commit cc7ad71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/badtemp_karlskrona/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def device_class(self):
return 'temperature'

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the attribute(s) of the sensor"""
if self._latitude is None or self._longitude is None:
return {
Expand Down

0 comments on commit cc7ad71

Please sign in to comment.