Move imports to top for qwikswitch (#29328)

This commit is contained in:
springstan authored and Paulus Schoutsen committed 2019-12-02 16:11:10 -08:00
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"]