Browse Source

Drop useless constructor (#101)

J. Nick Koston 1 year ago
parent
commit
e8f5b7761b

+ 0 - 5
switchbot/devices/bulb.py

@@ -25,11 +25,6 @@ _LOGGER = logging.getLogger(__name__)
 class SwitchbotBulb(SwitchbotSequenceBaseLight):
     """Representation of a Switchbot bulb."""
 
-    def __init__(self, *args: Any, **kwargs: Any) -> None:
-        """Switchbot bulb constructor."""
-        super().__init__(*args, **kwargs)
-        self._state: dict[str, Any] = {}
-
     @property
     def color_modes(self) -> set[ColorMode]:
         """Return the supported color modes."""

+ 0 - 5
switchbot/devices/ceiling_light.py

@@ -22,11 +22,6 @@ _LOGGER = logging.getLogger(__name__)
 class SwitchbotCeilingLight(SwitchbotBaseLight):
     """Representation of a Switchbot bulb."""
 
-    def __init__(self, *args: Any, **kwargs: Any) -> None:
-        """Switchbot bulb constructor."""
-        super().__init__(*args, **kwargs)
-        self._state: dict[str, Any] = {}
-
     @property
     def color_modes(self) -> set[ColorMode]:
         """Return the supported color modes."""

+ 0 - 5
switchbot/devices/light_strip.py

@@ -22,11 +22,6 @@ _LOGGER = logging.getLogger(__name__)
 class SwitchbotLightStrip(SwitchbotSequenceBaseLight):
     """Representation of a Switchbot light strip."""
 
-    def __init__(self, *args: Any, **kwargs: Any) -> None:
-        """Switchbot light strip constructor."""
-        super().__init__(*args, **kwargs)
-        self._state: dict[str, Any] = {}
-
     @property
     def color_modes(self) -> set[ColorMode]:
         """Return the supported color modes."""