Move imports to top for ialarm (#29422)

This commit is contained in:
springstan authored and Pascal Vizeli committed 2019-12-04 14:10:15 +01:00
1 parent 497674835b
commit 6f5b59da15
1 file changed
+1 -1
@@ -2,6 +2,7 @@
import logging
import re
from pyialarm import IAlarm
import voluptuous as vol
import homeassistant.components.alarm_control_panel as alarm
@@ -66,7 +67,6 @@ class IAlarmPanel(alarm.AlarmControlPanel):
def __init__(self, name, code, username, password, url):
"""Initialize the iAlarm status."""
from pyialarm import IAlarm
self._name = name
self._code = str(code) if code else None