Explicitly opt-in to device name in the uptime integration (#94846)

This commit is contained in:
Erik Montnemery 2023-06-19 11:47:54 +02:00 committed by GitHub
parent c7d636a371
commit 17797c04c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ class UptimeSensor(SensorEntity):
_attr_device_class = SensorDeviceClass.TIMESTAMP
_attr_has_entity_name = True
_attr_name = None
_attr_should_poll = False
def __init__(self, entry: ConfigEntry) -> None: