moved imports to top level (#27784)
parent
12a8e7520e
commit
2c535c92bd
|
@ -2,6 +2,7 @@
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
from pyalarmdotcom import Alarmdotcom
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.components.alarm_control_panel as alarm
|
import homeassistant.components.alarm_control_panel as alarm
|
||||||
|
@ -49,7 +50,6 @@ class AlarmDotCom(alarm.AlarmControlPanel):
|
||||||
|
|
||||||
def __init__(self, hass, name, code, username, password):
|
def __init__(self, hass, name, code, username, password):
|
||||||
"""Initialize the Alarm.com status."""
|
"""Initialize the Alarm.com status."""
|
||||||
from pyalarmdotcom import Alarmdotcom
|
|
||||||
|
|
||||||
_LOGGER.debug("Setting up Alarm.com...")
|
_LOGGER.debug("Setting up Alarm.com...")
|
||||||
self._hass = hass
|
self._hass = hass
|
||||||
|
|
Loading…
Reference in New Issue