Move imports to top for egardia (#29448)
parent
10759b7ca6
commit
85e188db52
|
@ -1,6 +1,7 @@
|
|||
"""Interfaces with Egardia/Woonveilig alarm control panel."""
|
||||
import logging
|
||||
|
||||
from pythonegardia import egardiadevice, egardiaserver
|
||||
import requests
|
||||
import voluptuous as vol
|
||||
|
||||
|
@ -78,8 +79,6 @@ CONFIG_SCHEMA = vol.Schema(
|
|||
|
||||
def setup(hass, config):
|
||||
"""Set up the Egardia platform."""
|
||||
from pythonegardia import egardiadevice
|
||||
from pythonegardia import egardiaserver
|
||||
|
||||
conf = config[DOMAIN]
|
||||
username = conf.get(CONF_USERNAME)
|
||||
|
|
Loading…
Reference in New Issue