mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 11:06:32 +00:00
Discovery default config (#793)
This commit is contained in:
parent
1f091b20ad
commit
fa5c2e37d3
@ -60,7 +60,7 @@ class Discovery(CoreSysAttributes, JsonConfig):
|
|||||||
def send(self, addon, service, config):
|
def send(self, addon, service, config):
|
||||||
"""Send a discovery message to Home Assistant."""
|
"""Send a discovery message to Home Assistant."""
|
||||||
try:
|
try:
|
||||||
DISCOVERY_SERVICES[service](config)
|
config = DISCOVERY_SERVICES[service](config)
|
||||||
except vol.Invalid as err:
|
except vol.Invalid as err:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Invalid discovery %s config", humanize_error(config, err))
|
"Invalid discovery %s config", humanize_error(config, err))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user