From c804b5f60211e5312695f2414ff8ad2127ff168a Mon Sep 17 00:00:00 2001 From: Tom Harris Date: Sat, 17 Feb 2018 16:55:55 -0500 Subject: [PATCH] Fix trailing whitespace --- homeassistant/components/light/insteon_plm.py | 6 +++--- homeassistant/components/sensor/insteon_plm.py | 6 +++--- homeassistant/components/switch/insteon_plm.py | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/light/insteon_plm.py b/homeassistant/components/light/insteon_plm.py index 36c6474eb1c..4c755d02db9 100644 --- a/homeassistant/components/light/insteon_plm.py +++ b/homeassistant/components/light/insteon_plm.py @@ -32,9 +32,9 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None): stateKey = deviceInfo['stateKey'] newnames = deviceInfo['newnames'] - state_list.append(InsteonPLMDimmerDevice(hass, - device, - stateKey, + state_list.append(InsteonPLMDimmerDevice(hass, + device, + stateKey, newnames)) async_add_devices(state_list) diff --git a/homeassistant/components/sensor/insteon_plm.py b/homeassistant/components/sensor/insteon_plm.py index 065cfb2e87a..912359b63cc 100644 --- a/homeassistant/components/sensor/insteon_plm.py +++ b/homeassistant/components/sensor/insteon_plm.py @@ -29,9 +29,9 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None): stateKey = deviceInfo['stateKey'] newnames = deviceInfo['newnames'] - state_list.append(InsteonPLMSensorDevice(hass, - device, - stateKey, + state_list.append(InsteonPLMSensorDevice(hass, + device, + stateKey, newnames)) async_add_devices(state_list) diff --git a/homeassistant/components/switch/insteon_plm.py b/homeassistant/components/switch/insteon_plm.py index 569ff12400d..cf75dceacbd 100644 --- a/homeassistant/components/switch/insteon_plm.py +++ b/homeassistant/components/switch/insteon_plm.py @@ -46,7 +46,7 @@ class InsteonPLMSwitchDevice(SwitchDevice): """Initialize the switch.""" self._hass = hass self._state = device.states[stateKey] - self._device = device + self._device = device self._newnames = newnames self._state.register_updates(self.async_switch_update) @@ -93,7 +93,7 @@ class InsteonPLMSwitchDevice(SwitchDevice): @callback def async_switch_update(self, deviceid, statename, val): """Receive notification from transport that new data exists.""" - _LOGGER.info('Received update calback from PLM for %s', + _LOGGER.info('Received update calback from PLM for %s', self._device.id) self._hass.async_add_job(self.async_update_ha_state()) @@ -162,7 +162,7 @@ class InsteonPLMOpenClosedDevice(SwitchDevice): @callback def async_relay_update(self, deviceid, statename, val): """Receive notification from transport that new data exists.""" - _LOGGER.info('Received update calback from PLM for %s', + _LOGGER.info('Received update calback from PLM for %s', self._device.id) self._hass.async_add_job(self.async_update_ha_state())