Tidy.
This commit is contained in:
parent
4b4fb038e3
commit
fca8ad5b0b
2 changed files with 0 additions and 5 deletions
|
@ -7,7 +7,6 @@ For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/light.vera/
|
https://home-assistant.io/components/light.vera/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import time
|
|
||||||
|
|
||||||
from requests.exceptions import RequestException
|
from requests.exceptions import RequestException
|
||||||
from homeassistant.components.switch.vera import VeraSwitch
|
from homeassistant.components.switch.vera import VeraSwitch
|
||||||
|
|
|
@ -7,11 +7,9 @@ For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/switch.vera/
|
https://home-assistant.io/components/switch.vera/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import time
|
|
||||||
from requests.exceptions import RequestException
|
from requests.exceptions import RequestException
|
||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
|
|
||||||
from homeassistant.helpers.entity import ToggleEntity
|
|
||||||
from homeassistant.components.switch import SwitchDevice
|
from homeassistant.components.switch import SwitchDevice
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
@ -138,7 +136,6 @@ class VeraSwitch(SwitchDevice):
|
||||||
self._state = STATE_ON
|
self._state = STATE_ON
|
||||||
self.update_ha_state()
|
self.update_ha_state()
|
||||||
|
|
||||||
|
|
||||||
def turn_off(self, **kwargs):
|
def turn_off(self, **kwargs):
|
||||||
self.vera_device.switch_off()
|
self.vera_device.switch_off()
|
||||||
self._state = STATE_OFF
|
self._state = STATE_OFF
|
||||||
|
@ -153,4 +150,3 @@ class VeraSwitch(SwitchDevice):
|
||||||
def is_on(self):
|
def is_on(self):
|
||||||
""" True if device is on. """
|
""" True if device is on. """
|
||||||
return self._state == STATE_ON
|
return self._state == STATE_ON
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue