From efcf3ddb577f43ae69ac70926b9d15b4559f7d28 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 28 Aug 2023 12:49:20 +0200 Subject: [PATCH] Remove BleBox switch constructor (#99204) --- homeassistant/components/blebox/switch.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/homeassistant/components/blebox/switch.py b/homeassistant/components/blebox/switch.py index d7145ebb620..94edc32bc8c 100644 --- a/homeassistant/components/blebox/switch.py +++ b/homeassistant/components/blebox/switch.py @@ -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):