Velleman/python-linkplay

Cannot select presets greater than 10

dnikles opened this issue · 1 comments

Some linkplay devices support more than 10 presets, but this only allows 10
I think this line is the issue

if not 0 < preset_number <= 10:

Using getStatusEx, you can read the value of preset_key to see how many presets the player supports

Yeah, a fix is incoming. Thank you for looking into the code. Will close this one when fixed here and then close the HA issue when it's fixed in the integration.