1 parent
78a3c01f27
commit
384f63dd1d
23 files changed
+33
-21
No files matched your search
@@ -30,7 +30,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
class CecSwitchDevice(CecDevice, SwitchDevice):
|
||||
"""Representation of a HDMI device as a Switch."""
|
||||
|
||||
def __init__(self, hass: HomeAssistant, device, logical):
|
||||
def __init__(self, hass: HomeAssistant, device, logical) -> None:
|
||||
"""Initialize the HDMI device."""
|
||||
CecDevice.__init__(self, hass, device, logical)
|
||||
self.entity_id = "%s.%s_%s" % (
|
||||
|
||||
@@ -53,7 +53,7 @@ class IHCSwitch(IHCDevice, SwitchDevice):
|
||||
"""IHC Switch."""
|
||||
|
||||
def __init__(self, ihc_controller, name: str, ihc_id: int,
|
||||
info: bool, product: Element=None):
|
||||
info: bool, product: Element=None) -> None:
|
||||
"""Initialize the IHC switch."""
|
||||
super().__init__(ihc_controller, name, ihc_id, product)
|
||||
self._state = False
|
||||
|
||||
Reference in new issue
Block a user