Fix trailing whitespace

pull/12483/head
Tom Harris 2018-02-17 16:55:55 -05:00
parent 13ae2a7ee5
commit c804b5f602
3 changed files with 9 additions and 9 deletions
homeassistant/components

View File

@ -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)

View File

@ -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)

View File

@ -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())