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 a042c82 commit 767d020Copy full SHA for 767d020
custom_components/battery_notes/__init__.py
@@ -398,7 +398,7 @@ async def handle_battery_last_reported(call):
398
399
device: BatteryNotesDevice
400
for device in hass.data[DOMAIN][DATA].devices.values():
401
- if device.coordinator.device_id and device.coordinator.last_reported:
+ if device.coordinator.last_reported and device.coordinator.last_reported_level:
402
time_since_lastreported = (
403
datetime.fromisoformat(str(datetime.utcnow()) + "+00:00")
404
- device.coordinator.last_reported
0 commit comments