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 ceb6060 commit a042c82Copy full SHA for a042c82
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.last_reported:
+ if device.coordinator.device_id and device.coordinator.last_reported:
402
time_since_lastreported = (
403
datetime.fromisoformat(str(datetime.utcnow()) + "+00:00")
404
- device.coordinator.last_reported
0 commit comments