Make interface_choice option effective (#35444)
I missed the second commit that actually makes this work in the original merge.
This commit is contained in:
1 parent
e4263afd64
commit
70b29dc823
2 files changed
+14
-1
No files matched your search
@@ -56,7 +56,7 @@ CONFIG_SCHEMA = vol.Schema(
|
||||
|
||||
def setup(hass, config):
|
||||
"""Set up Zeroconf and make Home Assistant discoverable."""
|
||||
if config.get(CONF_DEFAULT_INTERFACE):
|
||||
if DOMAIN in config and config[DOMAIN].get(CONF_DEFAULT_INTERFACE):
|
||||
zeroconf = Zeroconf(interfaces=InterfaceChoice.Default)
|
||||
else:
|
||||
zeroconf = Zeroconf()
|
||||
|
||||
Reference in new issue
Block a user