Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMachowski committed Jan 24, 2022
1 parent 00a3801 commit 4e0693f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/mpk_lodz/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def unit_of_measurement(self):
return None

@property
def device_state_attributes(self):
def extra_state_attributes(self):
attr = dict()
attr['stop_name'] = self._real_stop_name
if self._departures is not None:
Expand Down

0 comments on commit 4e0693f

Please sign in to comment.