ZHA fix device type mappings (#24699)

pull/24445/head^2
David F. Mulcahey 2019-06-22 15:05:36 -04:00 committed by Alexei Chetroi
parent 44d2871dc9
commit cfd8d70890
1 changed files with 2 additions and 2 deletions

View File

@ -131,8 +131,6 @@ def establish_device_mappings():
zha.DeviceType.DIMMABLE_LIGHT: LIGHT,
zha.DeviceType.COLOR_DIMMABLE_LIGHT: LIGHT,
zha.DeviceType.ON_OFF_LIGHT_SWITCH: SWITCH,
zha.DeviceType.DIMMER_SWITCH: LIGHT,
zha.DeviceType.COLOR_DIMMER_SWITCH: LIGHT,
zha.DeviceType.ON_OFF_BALLAST: SWITCH,
zha.DeviceType.DIMMABLE_BALLAST: LIGHT,
zha.DeviceType.ON_OFF_PLUG_IN_UNIT: SWITCH,
@ -202,6 +200,8 @@ def establish_device_mappings():
REMOTE_DEVICE_TYPES[zhap].append(zha.DeviceType.COLOR_CONTROLLER)
REMOTE_DEVICE_TYPES[zhap].append(zha.DeviceType.REMOTE_CONTROL)
REMOTE_DEVICE_TYPES[zhap].append(zha.DeviceType.SCENE_SELECTOR)
REMOTE_DEVICE_TYPES[zhap].append(zha.DeviceType.DIMMER_SWITCH)
REMOTE_DEVICE_TYPES[zhap].append(zha.DeviceType.COLOR_DIMMER_SWITCH)
zllp = zll.PROFILE_ID
REMOTE_DEVICE_TYPES[zllp].append(zll.DeviceType.COLOR_CONTROLLER)