Move imports to top for spc (#29547)

* Move imports to top for spc

* Fix pylint error by removing duplicate import
This commit is contained in:
springstan authored and Martin Hjelmare committed 2019-12-06 15:40:04 +01:00
1 parent d9b52ef98c
commit 606d310ea3
4 files changed
+15 -15

No files matched your search

@@ -1,6 +1,8 @@
"""Support for Vanderbilt (formerly Siemens) SPC alarm systems."""
import logging
from pyspcwebgw.const import ZoneInput
from homeassistant.components.binary_sensor import BinarySensorDevice
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
@@ -60,7 +62,6 @@ class SpcBinarySensor(BinarySensorDevice):
@property
def is_on(self):
"""Whether the device is switched on."""
from pyspcwebgw.const import ZoneInput
return self._zone.input == ZoneInput.OPEN