We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ca3a6 commit 2aac6fbCopy full SHA for 2aac6fb
1 file changed
custom_components/battery_notes/binary_sensor.py
@@ -53,6 +53,7 @@
53
Template,
54
TemplateStateFromEntityId,
55
)
56
+from homeassistant.util.dt import utcnow as utcnow_no_timezone
57
58
from .common import validate_is_float
59
from .const import (
@@ -672,6 +673,7 @@ async def async_state_changed_listener(
672
673
self.async_write_ha_state()
674
return
675
676
+ self.coordinator.last_reported = utcnow_no_timezone()
677
self.coordinator.battery_low_binary_state = (
678
wrapped_battery_low_state.state == "on"
679
0 commit comments