Skip to content

Commit

Permalink
fix mDNS configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomes committed Mar 9, 2024
1 parent 1205da0 commit 780374f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions custom_components/openhasp/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 780374f

Please sign in to comment.