mirror of
https://github.com/home-assistant/core.git
synced 2025-08-11 08:35:15 +02:00
Move imports in aqualogic component (#27805)
This commit is contained in:
@@ -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()
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user