mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Move imports to top for spc (#33628)
This commit is contained in:
parent
f71125092f
commit
29df8e546f
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user