Qwikswitch fix listen loop (#22600)

* Qwikswitch fix listen loop
* 0.93 fix qwikcord upstream
This commit is contained in:
Johann Kellerman 2019-04-02 05:57:25 +02:00 committed by GitHub
parent 7646dc00e0
commit 2578c8525b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 13 deletions

View file

@ -35,7 +35,7 @@ class QSBinarySensor(QSEntity, BinarySensorDevice):
def __init__(self, sensor):
"""Initialize the sensor."""
from pyqwikswitch import SENSORS
from pyqwikswitch.qwikswitch import SENSORS
super().__init__(sensor['id'], sensor['name'])
self.channel = sensor['channel']