From 0453d9fbb6d8f0fcae02dad1dc73fed9ac376ef7 Mon Sep 17 00:00:00 2001 From: Tom Harris Date: Wed, 21 Feb 2018 00:59:01 -0500 Subject: [PATCH] Debug messages --- homeassistant/components/binary_sensor/insteon_plm.py | 3 ++- homeassistant/components/fan/insteon_plm.py | 3 ++- homeassistant/components/light/insteon_plm.py | 3 ++- homeassistant/components/sensor/insteon_plm.py | 3 ++- homeassistant/components/switch/insteon_plm.py | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/binary_sensor/insteon_plm.py b/homeassistant/components/binary_sensor/insteon_plm.py index b99cf930df8..63cc2576cde 100644 --- a/homeassistant/components/binary_sensor/insteon_plm.py +++ b/homeassistant/components/binary_sensor/insteon_plm.py @@ -24,9 +24,10 @@ SENSOR_TYPES = {'openClosedSensor': 'opening', @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the INSTEON PLM device class for the hass platform.""" - _LOGGER.debug("Got here binary_sensor") entities = [] plm = hass.data['insteon_plm'] + _LOGGER.debug("Got here binary_sensor") + _LOGGER.debug(discovery_info) address = discovery_info['address'] device = plm.devices[address] diff --git a/homeassistant/components/fan/insteon_plm.py b/homeassistant/components/fan/insteon_plm.py index 4f82fa1e2ac..ab849e3f0af 100644 --- a/homeassistant/components/fan/insteon_plm.py +++ b/homeassistant/components/fan/insteon_plm.py @@ -32,9 +32,10 @@ _LOGGER = logging.getLogger(__name__) @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the INSTEON PLM device class for the hass platform.""" - _LOGGER.debug("Got here fan") entities = [] plm = hass.data['insteon_plm'] + _LOGGER.debug("Got here fan") + _LOGGER.debug(discovery_info) address = discovery_info['address'] device = plm.devices[address] diff --git a/homeassistant/components/light/insteon_plm.py b/homeassistant/components/light/insteon_plm.py index f28cb05536e..417502f9432 100644 --- a/homeassistant/components/light/insteon_plm.py +++ b/homeassistant/components/light/insteon_plm.py @@ -22,9 +22,10 @@ MAX_BRIGHTNESS = 255 @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the Insteon PLM device.""" - _LOGGER.debug("Got here light") entities = [] plm = hass.data['insteon_plm'] + _LOGGER.debug("Got here light") + _LOGGER.debug(discovery_info) address = discovery_info['address'] device = plm.devices[address] diff --git a/homeassistant/components/sensor/insteon_plm.py b/homeassistant/components/sensor/insteon_plm.py index 50580729ad5..d4aef0bdb86 100644 --- a/homeassistant/components/sensor/insteon_plm.py +++ b/homeassistant/components/sensor/insteon_plm.py @@ -19,9 +19,10 @@ _LOGGER = logging.getLogger(__name__) @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the INSTEON PLM device class for the hass platform.""" - _LOGGER.debug("Got here sensor") entities = [] plm = hass.data['insteon_plm'] + _LOGGER.debug("Got here sensor") + _LOGGER.debug(discovery_info) address = discovery_info['address'] device = plm.devices[address] diff --git a/homeassistant/components/switch/insteon_plm.py b/homeassistant/components/switch/insteon_plm.py index 9e01fea88c0..8a718f8c914 100644 --- a/homeassistant/components/switch/insteon_plm.py +++ b/homeassistant/components/switch/insteon_plm.py @@ -19,9 +19,10 @@ _LOGGER = logging.getLogger(__name__) @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the INSTEON PLM device class for the hass platform.""" - _LOGGER.debug("Got here switch") entities = [] plm = hass.data['insteon_plm'] + _LOGGER.debug("Got here switch") + _LOGGER.debug(discovery_info) address = discovery_info['address'] device = plm.devices[address]