mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Explicitly opt-in to device name in the cpuspeed integration (#94844)
This commit is contained in:
parent
e6a7ff97c8
commit
76a5e6d7ce
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user