Skip to content

Commit

Permalink
Fixing defi_hilo sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
valleedelisle committed Jan 7, 2022
1 parent 26c1e7d commit cd06c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hilo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ async def _async_update(self):
self._next_events.append(event)
self._state = "off"
if len(self._next_events):
self._state = self._next_events[0]["current"]
self._state = self._next_events[0]["state"]


class DeviceSensor(HiloEntity, SensorEntity):
Expand Down

0 comments on commit cd06c3e

Please sign in to comment.