mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Explicitly use device name as entity name for Xiaomi fan and humidifier (#95986)
This commit is contained in:
parent
de24860c87
commit
be01eb5aad
@ -292,6 +292,8 @@ async def async_setup_entry(
|
||||
class XiaomiGenericDevice(XiaomiCoordinatedMiioEntity, FanEntity):
|
||||
"""Representation of a generic Xiaomi device."""
|
||||
|
||||
_attr_name = None
|
||||
|
||||
def __init__(self, device, entry, unique_id, coordinator):
|
||||
"""Initialize the generic Xiaomi device."""
|
||||
super().__init__(device, entry, unique_id, coordinator)
|
||||
|
@ -118,6 +118,7 @@ class XiaomiGenericHumidifier(XiaomiCoordinatedMiioEntity, HumidifierEntity):
|
||||
|
||||
_attr_device_class = HumidifierDeviceClass.HUMIDIFIER
|
||||
_attr_supported_features = HumidifierEntityFeature.MODES
|
||||
_attr_name = None
|
||||
|
||||
def __init__(self, device, entry, unique_id, coordinator):
|
||||
"""Initialize the generic Xiaomi device."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user