Move imports in aqualogic component (#27805)

This commit is contained in:
bouni 2019-10-18 02:10:16 +02:00 committed by Paulus Schoutsen
parent 5eb781d378
commit 56c13503c3
2 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,10 @@
"""Support for AquaLogic devices.""" """Support for AquaLogic devices."""
from datetime import timedelta from datetime import timedelta
import logging import logging
import time
import threading import threading
import time
from aqualogic.core import AquaLogic
import voluptuous as vol import voluptuous as vol
from homeassistant.const import ( from homeassistant.const import (
@ -71,7 +72,6 @@ class AquaLogicProcessor(threading.Thread):
def run(self): def run(self):
"""Event thread.""" """Event thread."""
from aqualogic.core import AquaLogic
while True: while True:
self._panel = AquaLogic() self._panel = AquaLogic()

View File

@ -1,6 +1,7 @@
"""Support for AquaLogic switches.""" """Support for AquaLogic switches."""
import logging import logging
from aqualogic.core import States
import voluptuous as vol import voluptuous as vol
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice
@ -50,7 +51,6 @@ class AquaLogicSwitch(SwitchDevice):
def __init__(self, processor, switch_type): def __init__(self, processor, switch_type):
"""Initialize switch.""" """Initialize switch."""
from aqualogic.core import States
self._processor = processor self._processor = processor
self._type = switch_type self._type = switch_type