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 34609cf commit e6e97c5Copy full SHA for e6e97c5
custom_components/battery_notes/coordinator.py
@@ -192,12 +192,12 @@ def __init__( # noqa: PLR0912
192
193
if device_entry and device_entry.created_at.year > 1970:
194
last_replaced = device_entry.created_at.strftime(
195
- "%Y-%m-%dT%H:%M:%S:%f"
+ "%Y-%m-%dT%H:%M:%S.%f"
196
)
197
elif self.source_entity_id:
198
entity = entity_registry.async_get(self.source_entity_id)
199
if entity and entity.created_at.year > 1970:
200
- last_replaced = entity.created_at.strftime("%Y-%m-%dT%H:%M:%S:%f")
+ last_replaced = entity.created_at.strftime("%Y-%m-%dT%H:%M:%S.%f")
201
202
_LOGGER.debug(
203
"Defaulting %s battery last replaced to %s",
0 commit comments