Added insteonplm device_override multiple capabilities (#9078)
parent
398735c9be
commit
f6c5e5ff00
|
@ -94,3 +94,6 @@ docs/build
|
||||||
|
|
||||||
# Windows Explorer
|
# Windows Explorer
|
||||||
desktop.ini
|
desktop.ini
|
||||||
|
/home-assistant.pyproj
|
||||||
|
/home-assistant.sln
|
||||||
|
/.vs/home-assistant/v14
|
||||||
|
|
|
@ -79,8 +79,12 @@ def async_setup(hass, config):
|
||||||
#
|
#
|
||||||
# Override the device default capabilities for a specific address
|
# Override the device default capabilities for a specific address
|
||||||
#
|
#
|
||||||
plm.protocol.devices.add_override(
|
if isinstance(device['platform'], list):
|
||||||
device['address'], 'capabilities', [device['platform']])
|
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
|
hass.data['insteon_plm'] = plm
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue