mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Move imports in aqualogic component (#27805)
This commit is contained in:
parent
5eb781d378
commit
56c13503c3
@ -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()
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user