Move imports to top for ialarm (#29422)
This commit is contained in:
parent
497674835b
commit
6f5b59da15
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue