Move imports to top for qwikswitch (#29328)
This commit is contained in:
1 parent
83b21651ce
commit
141fd1bffd
3 files changed
+6
-4
No files matched your search
@@ -1,6 +1,8 @@
|
||||
"""Support for Qwikswitch Binary Sensors."""
|
||||
import logging
|
||||
|
||||
from pyqwikswitch.qwikswitch import SENSORS
|
||||
|
||||
from homeassistant.components.binary_sensor import BinarySensorDevice
|
||||
from homeassistant.core import callback
|
||||
|
||||
@@ -27,7 +29,6 @@ class QSBinarySensor(QSEntity, BinarySensorDevice):
|
||||
|
||||
def __init__(self, sensor):
|
||||
"""Initialize the sensor."""
|
||||
from pyqwikswitch.qwikswitch import SENSORS
|
||||
|
||||
super().__init__(sensor["id"], sensor["name"])
|
||||
self.channel = sensor["channel"]
|
||||
|
||||
Reference in new issue
Block a user