Move imports to top for spc (#33628)

This commit is contained in:
Franck Nijhof 2020-04-04 15:49:29 +02:00 committed by GitHub
parent f71125092f
commit 29df8e546f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
"""Support for Vanderbilt (formerly Siemens) SPC alarm systems.""" """Support for Vanderbilt (formerly Siemens) SPC alarm systems."""
import logging import logging
from pyspcwebgw.const import ZoneInput from pyspcwebgw.const import ZoneInput, ZoneType
from homeassistant.components.binary_sensor import BinarySensorDevice from homeassistant.components.binary_sensor import BinarySensorDevice
from homeassistant.core import callback from homeassistant.core import callback
@ -13,8 +13,6 @@ _LOGGER = logging.getLogger(__name__)
def _get_device_class(zone_type): def _get_device_class(zone_type):
from pyspcwebgw.const import ZoneType
return { return {
ZoneType.ALARM: "motion", ZoneType.ALARM: "motion",
ZoneType.ENTRY_EXIT: "opening", ZoneType.ENTRY_EXIT: "opening",