mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Fix missing timezone in GTFS timestamp sensor (#63401)
This commit is contained in:
parent
cb76a30233
commit
841e22258d
@ -613,7 +613,9 @@ class GTFSDepartureSensor(SensorEntity):
|
|||||||
if not self._departure:
|
if not self._departure:
|
||||||
self._state = None
|
self._state = None
|
||||||
else:
|
else:
|
||||||
self._state = self._departure["departure_time"]
|
self._state = self._departure["departure_time"].replace(
|
||||||
|
tzinfo=dt_util.UTC
|
||||||
|
)
|
||||||
|
|
||||||
# Fetch trip and route details once, unless updated
|
# Fetch trip and route details once, unless updated
|
||||||
if not self._departure:
|
if not self._departure:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user