Fix linting
This commit is contained in:
@@ -347,7 +347,7 @@ class HCDevice:
|
||||
values = msg["data"][0]
|
||||
|
||||
elif resource == "/ro/descriptionChange" or resource == "/ro/allDescriptionChanges":
|
||||
### we asked for these but don't know have to parse yet
|
||||
# we asked for these but don't know have to parse yet
|
||||
pass
|
||||
|
||||
elif resource == "/ni/info":
|
||||
|
||||
7
hc2mqtt
7
hc2mqtt
@@ -134,18 +134,11 @@ def hc2mqtt(
|
||||
client.loop_forever()
|
||||
|
||||
|
||||
# Map their value names to easier state names
|
||||
topics = {
|
||||
"InternalError": "Error",
|
||||
"FatalErrorOccured": "Error",
|
||||
}
|
||||
global dev
|
||||
dev = {}
|
||||
|
||||
|
||||
def client_connect(client, device, mqtt_topic):
|
||||
host = device["host"]
|
||||
device_topics = topics.copy()
|
||||
|
||||
state = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user