mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Use native datetime value in Uptime sensors (#59916)
This commit is contained in:
parent
4e4f6ffa07
commit
fc29611935
@ -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: str = dt_util.now().isoformat()
|
||||
self._attr_native_value = dt_util.now()
|
||||
|
Loading…
x
Reference in New Issue
Block a user