Move imports to top for spc (#33628)
This commit is contained in:
1 parent
f71125092f
commit
29df8e546f
1 file changed
+1
-3
@@ -1,7 +1,7 @@
|
||||
"""Support for Vanderbilt (formerly Siemens) SPC alarm systems."""
|
||||
import logging
|
||||
|
||||
from pyspcwebgw.const import ZoneInput
|
||||
from pyspcwebgw.const import ZoneInput, ZoneType
|
||||
|
||||
from homeassistant.components.binary_sensor import BinarySensorDevice
|
||||
from homeassistant.core import callback
|
||||
@@ -13,8 +13,6 @@ _LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def _get_device_class(zone_type):
|
||||
from pyspcwebgw.const import ZoneType
|
||||
|
||||
return {
|
||||
ZoneType.ALARM: "motion",
|
||||
ZoneType.ENTRY_EXIT: "opening",
|
||||
|
||||
Reference in new issue
Block a user