Remove BleBox switch constructor (#99204)

This commit is contained in:
Joost Lekkerkerker 2023-08-28 12:49:20 +02:00 committed by GitHub
parent 8edae37082
commit efcf3ddb57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):