Get module instance after checking for zeroconf
This commit is contained in:
parent
c0178db779
commit
c1948d05e0
|
@ -406,9 +406,9 @@ class PluginManager(metaclass=Singleton):
|
||||||
return
|
return
|
||||||
for con in app.connections.values():
|
for con in app.connections.values():
|
||||||
for module in plugin.modules:
|
for module in plugin.modules:
|
||||||
instance, name = module.get_instance(con)
|
|
||||||
if not module.zeroconf and con.name == 'Local':
|
if not module.zeroconf and con.name == 'Local':
|
||||||
continue
|
continue
|
||||||
|
instance, name = module.get_instance(con)
|
||||||
modules.register_single(con, instance, name)
|
modules.register_single(con, instance, name)
|
||||||
|
|
||||||
# If handlers have been registered, register the
|
# If handlers have been registered, register the
|
||||||
|
@ -558,9 +558,9 @@ class PluginManager(metaclass=Singleton):
|
||||||
return
|
return
|
||||||
|
|
||||||
for module in plugin.modules:
|
for module in plugin.modules:
|
||||||
instance, name = module.get_instance(con)
|
|
||||||
if not module.zeroconf and con.name == 'Local':
|
if not module.zeroconf and con.name == 'Local':
|
||||||
continue
|
continue
|
||||||
|
instance, name = module.get_instance(con)
|
||||||
modules.register_single(con, instance, name)
|
modules.register_single(con, instance, name)
|
||||||
|
|
||||||
def _plugin_is_active_in_global_config(self, plugin):
|
def _plugin_is_active_in_global_config(self, plugin):
|
||||||
|
|
Loading…
Reference in New Issue