From e507153b759057be078c79ff12e7fd6639fd3710 Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Thu, 25 Jan 2024 16:22:24 +0000 Subject: [PATCH] Fix battery increase event --- custom_components/battery_notes/binary_sensor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/battery_notes/binary_sensor.py b/custom_components/battery_notes/binary_sensor.py index 7dea43e89..b375b852e 100644 --- a/custom_components/battery_notes/binary_sensor.py +++ b/custom_components/battery_notes/binary_sensor.py @@ -316,8 +316,7 @@ async def async_state_changed_listener( _LOGGER.debug("battery_increased event fired") - self._previous_battery_level = float(wrapped_battery_state.state) - + self._previous_battery_level = float(wrapped_battery_state.state) self._previous_state_last_changed = wrapped_battery_state.last_changed self._previous_battery_low = battery_low