Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMachowski committed Jan 23, 2022
1 parent 89e9668 commit 1220a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hydro_imgw/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, entity_id, name, station_id):

@property
def name(self):
name = self._station_id if self._data is None else self.device_state_attributes["name"]
name = self._station_id if self._data is None else self.extra_state_attributes["name"]
return '{} - {}'.format(self._platform_name, name)

@property
Expand Down

0 comments on commit 1220a84

Please sign in to comment.