Added insteonplm device_override multiple capabilities (#9078)

pull/9091/head
Tom Harris 2017-08-22 03:22:37 -04:00 committed by Andrey
parent 398735c9be
commit f6c5e5ff00
2 changed files with 9 additions and 2 deletions

3
.gitignore vendored
View File

@ -94,3 +94,6 @@ docs/build
# Windows Explorer
desktop.ini
/home-assistant.pyproj
/home-assistant.sln
/.vs/home-assistant/v14

View File

@ -79,8 +79,12 @@ def async_setup(hass, config):
#
# Override the device default capabilities for a specific address
#
plm.protocol.devices.add_override(
device['address'], 'capabilities', [device['platform']])
if isinstance(device['platform'], list):
plm.protocol.devices.add_override(
device['address'], 'capabilities', device['platform'])
else:
plm.protocol.devices.add_override(
device['address'], 'capabilities', [device['platform']])
hass.data['insteon_plm'] = plm