mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Use UTC timestamp in uptime sensor (#60240)
This commit is contained in:
parent
5a8cbb8cab
commit
fa34153b20
@ -50,4 +50,4 @@ class UptimeSensor(SensorEntity):
|
|||||||
self._attr_name: str = name
|
self._attr_name: str = name
|
||||||
self._attr_device_class: str = DEVICE_CLASS_TIMESTAMP
|
self._attr_device_class: str = DEVICE_CLASS_TIMESTAMP
|
||||||
self._attr_should_poll: bool = False
|
self._attr_should_poll: bool = False
|
||||||
self._attr_native_value = dt_util.now()
|
self._attr_native_value = dt_util.utcnow()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user