mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Fix yandex_transport timestamp sensor (#61217)
This commit is contained in:
parent
21f897bb5b
commit
4819484cbb
@ -129,9 +129,7 @@ class DiscoverYandexTransport(SensorEntity):
|
||||
if closer_time is None:
|
||||
self._state = None
|
||||
else:
|
||||
self._state = dt_util.utc_from_timestamp(closer_time).isoformat(
|
||||
timespec="seconds"
|
||||
)
|
||||
self._state = dt_util.utc_from_timestamp(closer_time).replace(microsecond=0)
|
||||
self._attrs = attrs
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user