浏览代码

Drop useless constructor (#101)

J. Nick Koston 2 年之前
父节点
当前提交
e8f5b7761b
共有 3 个文件被更改,包括 0 次插入15 次删除
  1. 0 5
      switchbot/devices/bulb.py
  2. 0 5
      switchbot/devices/ceiling_light.py
  3. 0 5
      switchbot/devices/light_strip.py

+ 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."""