Skip to content

Commit

Permalink
Fix battery increase event
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Jan 25, 2024
1 parent 958e55d commit e507153
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/battery_notes/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e507153

Please sign in to comment.