Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions homeassistant/components/switchbot/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class SwitchBotCurtainEntity(SwitchbotEntity, CoverEntity, RestoreEntity):
| CoverEntityFeature.SET_POSITION
)
_attr_translation_key = "cover"
_attr_name = None

def __init__(self, coordinator: SwitchbotDataUpdateCoordinator) -> None:
"""Initialize the Switchbot."""
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/switchbot/humidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class SwitchBotHumidifier(SwitchbotSwitchedEntity, HumidifierEntity):
_device: switchbot.SwitchbotHumidifier
_attr_min_humidity = 1
_attr_translation_key = "humidifier"
_attr_name = None

@property
def is_on(self) -> bool | None:
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/switchbot/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class SwitchbotLightEntity(SwitchbotEntity, LightEntity):
"""Representation of switchbot light bulb."""

_device: SwitchbotBaseLight
_attr_name = None

def __init__(self, coordinator: SwitchbotDataUpdateCoordinator) -> None:
"""Initialize the Switchbot light."""
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/switchbot/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class SwitchBotLock(SwitchbotEntity, LockEntity):
"""Representation of a Switchbot lock."""

_attr_translation_key = "lock"
_attr_name = None
_device: switchbot.SwitchbotLock

def __init__(self, coordinator: SwitchbotDataUpdateCoordinator) -> None:
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/switchbot/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class SwitchBotSwitch(SwitchbotSwitchedEntity, SwitchEntity, RestoreEntity):

_attr_device_class = SwitchDeviceClass.SWITCH
_attr_translation_key = "bot"
_attr_name = None
_device: switchbot.Switchbot

def __init__(self, coordinator: SwitchbotDataUpdateCoordinator) -> None:
Expand Down