From ba2ea35089a9d92a96bd2917e0e616dd700219f7 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 10 Nov 2016 18:46:31 +0100 Subject: [PATCH] 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 --- homeassistant/bootstrap.py | 1 + homeassistant/helpers/entity_component.py | 1 + 2 files changed, 2 insertions(+) diff --git a/homeassistant/bootstrap.py b/homeassistant/bootstrap.py index 2b6c4711691..923237d4e63 100644 --- a/homeassistant/bootstrap.py +++ b/homeassistant/bootstrap.py @@ -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: diff --git a/homeassistant/helpers/entity_component.py b/homeassistant/helpers/entity_component.py index cb021fff4a4..c8b0e0e58eb 100644 --- a/homeassistant/helpers/entity_component.py +++ b/homeassistant/helpers/entity_component.py @@ -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,