diff --git a/.coveragerc b/.coveragerc index 465e1f62315..5f2770c17a5 100644 --- a/.coveragerc +++ b/.coveragerc @@ -147,6 +147,9 @@ omit = homeassistant/components/denon/media_player.py homeassistant/components/denonavr/media_player.py homeassistant/components/deutsche_bahn/sensor.py + homeassistant/components/devolo_home_control/__init__.py + homeassistant/components/devolo_home_control/const.py + homeassistant/components/devolo_home_control/switch.py homeassistant/components/dht/sensor.py homeassistant/components/digital_ocean/* homeassistant/components/digitalloggers/switch.py diff --git a/homeassistant/components/devolo_home_control/switch.py b/homeassistant/components/devolo_home_control/switch.py index 7a7cd7a583b..e5210262268 100644 --- a/homeassistant/components/devolo_home_control/switch.py +++ b/homeassistant/components/devolo_home_control/switch.py @@ -116,12 +116,12 @@ class DevoloSwitch(SwitchDevice): def turn_on(self, **kwargs): """Switch on the device.""" self._is_on = True - self._binary_switch_property.set_binary_switch(state=True) + self._binary_switch_property.set(state=True) def turn_off(self, **kwargs): """Switch off the device.""" self._is_on = False - self._binary_switch_property.set_binary_switch(state=False) + self._binary_switch_property.set(state=False) def sync(self, message=None): """Update the binary switch state and consumption."""