Fix yandex_transport timestamp sensor (#61217)

pull/61219/head
Paulus Schoutsen 2021-12-07 22:14:28 -08:00 committed by GitHub
parent 21f897bb5b
commit 4819484cbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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