mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +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):
|
||||
"""Representation of a BleBox switch feature."""
|
||||
|
||||
def __init__(self, feature: blebox_uniapi.switch.Switch) -> None:
|
||||
"""Initialize a BleBox switch feature."""
|
||||
super().__init__(feature)
|
||||
self._attr_device_class = SwitchDeviceClass.SWITCH
|
||||
_attr_device_class = SwitchDeviceClass.SWITCH
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user