We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78bcb01 commit d3867fcCopy full SHA for d3867fc
TheengsGateway/__init__.py
@@ -58,6 +58,12 @@ def main() -> None:
58
if not configuration["host"]:
59
sys.exit("MQTT host is not specified")
60
61
+ # Make sure discovery_filter is a list, and convert to list
62
+ # if it is actually a string (Docker and HA Add-in)
63
+ if isinstance(configuration["discovery_filter"], str):
64
+ # Convert the string to a list by removing brackets and splitting by commas
65
+ configuration["discovery_filter"] = configuration["discovery_filter"].strip("[]").split(",")
66
+
67
# Remove possible discovery filter remnants not required after the RMAC introduction
68
if "GAEN" in configuration["discovery_filter"]:
69
configuration["discovery_filter"].remove("GAEN")
0 commit comments