Skip to content

Commit

Permalink
Added insteonplm device_override multiple capabilities (home-assistan…
Browse files Browse the repository at this point in the history
  • Loading branch information
teharris1 authored and andrey-git committed Aug 22, 2017
1 parent 398735c commit f6c5e5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,6 @@ docs/build

# Windows Explorer
desktop.ini
/home-assistant.pyproj
/home-assistant.sln
/.vs/home-assistant/v14
8 changes: 6 additions & 2 deletions homeassistant/components/insteon_plm.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,12 @@ def async_plm_new_device(device):
#
# 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

Expand Down

0 comments on commit f6c5e5f

Please sign in to comment.