mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Fix missing timezone in GTFS timestamp sensor (#63401)
This commit is contained in:
parent
082c9c34ea
commit
27a74d2720
@ -619,7 +619,9 @@ class GTFSDepartureSensor(SensorEntity):
|
||||
if not self._departure:
|
||||
self._state = None
|
||||
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
|
||||
if not self._departure:
|
||||
|
Loading…
x
Reference in New Issue
Block a user