mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Move imports to top for ialarm (#29422)
This commit is contained in:
parent
497674835b
commit
6f5b59da15
@ -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…
x
Reference in New Issue
Block a user