Fix trailing whitespace
parent
13ae2a7ee5
commit
c804b5f602
|
@ -32,9 +32,9 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||||
stateKey = deviceInfo['stateKey']
|
stateKey = deviceInfo['stateKey']
|
||||||
newnames = deviceInfo['newnames']
|
newnames = deviceInfo['newnames']
|
||||||
|
|
||||||
state_list.append(InsteonPLMDimmerDevice(hass,
|
state_list.append(InsteonPLMDimmerDevice(hass,
|
||||||
device,
|
device,
|
||||||
stateKey,
|
stateKey,
|
||||||
newnames))
|
newnames))
|
||||||
|
|
||||||
async_add_devices(state_list)
|
async_add_devices(state_list)
|
||||||
|
|
|
@ -29,9 +29,9 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||||
stateKey = deviceInfo['stateKey']
|
stateKey = deviceInfo['stateKey']
|
||||||
newnames = deviceInfo['newnames']
|
newnames = deviceInfo['newnames']
|
||||||
|
|
||||||
state_list.append(InsteonPLMSensorDevice(hass,
|
state_list.append(InsteonPLMSensorDevice(hass,
|
||||||
device,
|
device,
|
||||||
stateKey,
|
stateKey,
|
||||||
newnames))
|
newnames))
|
||||||
|
|
||||||
async_add_devices(state_list)
|
async_add_devices(state_list)
|
||||||
|
|
|
@ -46,7 +46,7 @@ class InsteonPLMSwitchDevice(SwitchDevice):
|
||||||
"""Initialize the switch."""
|
"""Initialize the switch."""
|
||||||
self._hass = hass
|
self._hass = hass
|
||||||
self._state = device.states[stateKey]
|
self._state = device.states[stateKey]
|
||||||
self._device = device
|
self._device = device
|
||||||
self._newnames = newnames
|
self._newnames = newnames
|
||||||
|
|
||||||
self._state.register_updates(self.async_switch_update)
|
self._state.register_updates(self.async_switch_update)
|
||||||
|
@ -93,7 +93,7 @@ class InsteonPLMSwitchDevice(SwitchDevice):
|
||||||
@callback
|
@callback
|
||||||
def async_switch_update(self, deviceid, statename, val):
|
def async_switch_update(self, deviceid, statename, val):
|
||||||
"""Receive notification from transport that new data exists."""
|
"""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._device.id)
|
||||||
self._hass.async_add_job(self.async_update_ha_state())
|
self._hass.async_add_job(self.async_update_ha_state())
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ class InsteonPLMOpenClosedDevice(SwitchDevice):
|
||||||
@callback
|
@callback
|
||||||
def async_relay_update(self, deviceid, statename, val):
|
def async_relay_update(self, deviceid, statename, val):
|
||||||
"""Receive notification from transport that new data exists."""
|
"""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._device.id)
|
||||||
self._hass.async_add_job(self.async_update_ha_state())
|
self._hass.async_add_job(self.async_update_ha_state())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue