Add logging to platform/component setup (#4300)

* Add timeout to platform/component

* Revert "Add timeout to platform/component"

This reverts commit 280a311e485a54f731de5cf5368e0ff8ac83417f.

* Add logging data

* Change log message with paulus comments
This commit is contained in:
Pascal Vizeli authored and GitHub committed 2016-11-10 18:46:31 +01:00
1 parent ade62faa38
commit ba2ea35089
2 files changed
+2

No files matched your search

+1
View File
@@ -142,6 +142,7 @@ def _async_setup_component(hass: core.HomeAssistant,
async_comp = hasattr(component, 'async_setup')
try:
_LOGGER.info("Setting up %s", domain)
if async_comp:
result = yield from component.async_setup(hass, config)
else:
@@ -138,6 +138,7 @@ class EntityComponent(object):
entity_platform = self._platforms[key]
try:
self.logger.info("Setting up %s.%s", self.domain, platform_type)
if getattr(platform, 'async_setup_platform', None):
yield from platform.async_setup_platform(
self.hass, platform_config,