From fa5c2e37d33490f50471fb3527614d21a3f712fb Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 5 Nov 2018 07:45:28 +0100 Subject: [PATCH] Discovery default config (#793) --- hassio/discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hassio/discovery.py b/hassio/discovery.py index 8d0632b37..ff733cf70 100644 --- a/hassio/discovery.py +++ b/hassio/discovery.py @@ -60,7 +60,7 @@ class Discovery(CoreSysAttributes, JsonConfig): def send(self, addon, service, config): """Send a discovery message to Home Assistant.""" try: - DISCOVERY_SERVICES[service](config) + config = DISCOVERY_SERVICES[service](config) except vol.Invalid as err: _LOGGER.error( "Invalid discovery %s config", humanize_error(config, err))