Skip to content

Commit

Permalink
Update powercanary_sensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
elden1337 authored Sep 15, 2024
1 parent 28a48ea commit 9b29bb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/peaqev/sensors/power/powercanary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def state(self) -> int:

async def async_update(self) -> None:
if self.hub.is_initialized:
self._state = self.hub.power.power_canary.state_string # todo: composition
ret = self.hub.power.power_canary.state_string # todo: composition
if ret != self._state:
self._state = ret


class PowerCanaryPercentageSensor(PowerCanaryDevice):
Expand Down

0 comments on commit 9b29bb4

Please sign in to comment.