From 780374f29c741a1887373022314af6e483cb8c34 Mon Sep 17 00:00:00 2001 From: Diogo Gomes Date: Sat, 9 Mar 2024 00:31:26 +0000 Subject: [PATCH] fix mDNS configurations --- custom_components/openhasp/config_flow.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/custom_components/openhasp/config_flow.py b/custom_components/openhasp/config_flow.py index 533f391..1a13fb1 100644 --- a/custom_components/openhasp/config_flow.py +++ b/custom_components/openhasp/config_flow.py @@ -91,6 +91,17 @@ async def async_step_zeroconf(self, discovery_info=None): _discovered[CONF_TOPIC] = _discovered[DISCOVERED_NODE_T][:-1] + for key in [ + DISCOVERED_PAGES, + DISCOVERED_POWER, + DISCOVERED_LIGHT, + DISCOVERED_DIM, + DISCOVERED_INPUT, + ]: + _discovered[key] = eval(_discovered.get(key)) + _discovered[key] = eval(_discovered.get(key)) + + return await self._process_discovery(_discovered) async def async_step_mqtt(self, discovery_info=None):