Skip to content

Commit

Permalink
Correct name for repeater device - issue #345
Browse files Browse the repository at this point in the history
  • Loading branch information
msp1974 committed Feb 11, 2023
1 parent 033ae41 commit c4f0c25
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions custom_components/wiser/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,12 @@ def extra_state_attributes(self):
attrs["parent_node_id"] = self._device.parent_node_id
attrs["hub_route"] = "repeater"
attrs["repeater"] = (
self._data.wiserhub.devices.get_by_node_id(
self._device.parent_node_id
).name
get_device_name(
self._data,
self._data.wiserhub.devices.get_by_node_id(
self._device.parent_node_id
).id,
)
if self._data.wiserhub.devices.get_by_node_id(
self._device.parent_node_id
)
Expand Down

0 comments on commit c4f0c25

Please sign in to comment.