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."""
from datetime import timedelta
import logging
import time
import threading
import time
from aqualogic.core import AquaLogic
import voluptuous as vol
from homeassistant.const import (
@@ -71,7 +72,6 @@ class AquaLogicProcessor(threading.Thread):
def run(self):
"""Event thread."""
from aqualogic.core import AquaLogic
while True:
self._panel = AquaLogic()

View File

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