mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Remove BleBox switch constructor (#99204)
This commit is contained in:
parent
8edae37082
commit
efcf3ddb57
@ -32,10 +32,7 @@ async def async_setup_entry(
|
|||||||
class BleBoxSwitchEntity(BleBoxEntity[blebox_uniapi.switch.Switch], SwitchEntity):
|
class BleBoxSwitchEntity(BleBoxEntity[blebox_uniapi.switch.Switch], SwitchEntity):
|
||||||
"""Representation of a BleBox switch feature."""
|
"""Representation of a BleBox switch feature."""
|
||||||
|
|
||||||
def __init__(self, feature: blebox_uniapi.switch.Switch) -> None:
|
_attr_device_class = SwitchDeviceClass.SWITCH
|
||||||
"""Initialize a BleBox switch feature."""
|
|
||||||
super().__init__(feature)
|
|
||||||
self._attr_device_class = SwitchDeviceClass.SWITCH
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_on(self):
|
def is_on(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user