Explicitly opt-in to device name in the cpuspeed integration (#94844)

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

View File

@ -35,6 +35,7 @@ class CPUSpeedSensor(SensorEntity):
_attr_device_class = SensorDeviceClass.FREQUENCY _attr_device_class = SensorDeviceClass.FREQUENCY
_attr_icon = "mdi:pulse" _attr_icon = "mdi:pulse"
_attr_has_entity_name = True _attr_has_entity_name = True
_attr_name = None
_attr_native_unit_of_measurement = UnitOfFrequency.GIGAHERTZ _attr_native_unit_of_measurement = UnitOfFrequency.GIGAHERTZ
def __init__(self, entry: ConfigEntry) -> None: def __init__(self, entry: ConfigEntry) -> None: