Use UTC timestamp in uptime sensor (#60240)
This commit is contained in:
parent
5a8cbb8cab
commit
fa34153b20
1 changed files with 1 additions and 1 deletions
|
@ -50,4 +50,4 @@ class UptimeSensor(SensorEntity):
|
|||
self._attr_name: str = name
|
||||
self._attr_device_class: str = DEVICE_CLASS_TIMESTAMP
|
||||
self._attr_should_poll: bool = False
|
||||
self._attr_native_value = dt_util.now()
|
||||
self._attr_native_value = dt_util.utcnow()
|
||||
|
|
Loading…
Add table
Reference in a new issue