From 38e1b81ff67be6f9178e6e403431389e4dd17ee3 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 3 Sep 2017 23:27:13 +0300 Subject: [PATCH] discovery: If unknown NetDisco service discovered, log about it. (#9280) Otherwise, known services are logged, ignored are logged, but unknown - not. Logging them is quite helpful for someone working on adding new discovery service to NetDisco/HA, and would help to decouple NetDisco library further: another project may use a generic NetDisco library, and contribute new service to it, which won't be automatically supported by HA. But logging about it would be a good hint to HA users that they can look into supporting it. --- homeassistant/components/discovery.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/discovery.py b/homeassistant/components/discovery.py index 06e6f0b989a..c757d9d1ce3 100644 --- a/homeassistant/components/discovery.py +++ b/homeassistant/components/discovery.py @@ -100,6 +100,7 @@ def async_setup(hass, config): # We do not know how to handle this service. if not comp_plat: + logger.info("Unknown service discovered: %s %s", service, info) return discovery_hash = json.dumps([service, info], sort_keys=True)