mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +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:
|
if closer_time is None:
|
||||||
self._state = None
|
self._state = None
|
||||||
else:
|
else:
|
||||||
self._state = dt_util.utc_from_timestamp(closer_time).isoformat(
|
self._state = dt_util.utc_from_timestamp(closer_time).replace(microsecond=0)
|
||||||
timespec="seconds"
|
|
||||||
)
|
|
||||||
self._attrs = attrs
|
self._attrs = attrs
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user