Fix yandex_transport timestamp sensor (#61217)
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…
Reference in New Issue