Merge branch 'main' into mqtt_lwt

This commit is contained in:
Meatballs1
2024-03-20 23:34:43 +00:00
2 changed files with 2 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ class HCDevice:
for option in data["options"]:
option_uid = option["uid"]
if str(option_uid) not in self.features:
raise ValueError(
raise ValueError(
f"Unable to configure appliance. Option UID {option_uid} is not"
" valid for this device."
)

View File

@@ -145,7 +145,7 @@ dev = {}
def client_connect(client, device, mqtt_topic):
host = device["host"]
device_topics = topics
device_topics = topics.copy()
for value in device["features"]:
if (
@@ -213,6 +213,5 @@ def client_connect(client, device, mqtt_topic):
time.sleep(40)
if __name__ == "__main__":
hc2mqtt()