Skip to content

Commit

Permalink
Explicitly use device name as entity name for Xiaomi fan and humidifi…
Browse files Browse the repository at this point in the history
…er (#95986)
  • Loading branch information
jpbede authored Jul 6, 2023
1 parent de24860 commit be01eb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/xiaomi_miio/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ async def async_service_handler(service: ServiceCall) -> None:
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)
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/xiaomi_miio/humidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit be01eb5

Please sign in to comment.