IndigoDomotics / indigo-yamaharx

Indigo plugin to control Yamaha RX-V receivers
MIT License
5 stars 8 forks source link

RX-V3900 TypeError on Set Input Action #13

Open ccons opened 6 years ago

ccons commented 6 years ago

I added an RX-V3900 device. When I attempt to add action type Set Input, the drop-down list in the Configure Set Input pop-up is not populated (- select and item -), and the following appears in the Event Log. Any ideas?

Yamaha RX Receiver Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last): TypeError: Expecting an object of type list; got an object of type tuple instead

ccons commented 6 years ago

I replaced <List class="self" method="get_input_list" dynamicReload="true" /> in Actions.xml with the from from Devices.xml > Devices.receiver.States.input, and the action now works as expected. I'm guessing this would break the newer receivers though.

ccons commented 6 years ago

OK, I'd submit the patch myself, but I've never done that on GitHub. These are the changes to fix in plugin.py:

plugin.py.txt