sermayoral / ha-samsungtv-encrypted

Samsung TV Encrypted Models (H & J Series) custom component for Home Assistant
Apache License 2.0
39 stars 24 forks source link

Parse correctly the list of connected sources #20

Closed andsx closed 4 years ago

sermayoral commented 4 years ago

This is not working for me. I need the 'j' index

andsx commented 4 years ago

Are you sure? The elements of sources_connected are not changing during the loop, so why do you need to check a different index? Try with sources_connected = ['yes','no','yes']: the second connected source (3rd place) is skipped. Only after changing this I can see all the sources on my tv.

sermayoral commented 4 years ago

Are you sure? The elements of sources_connected are not changing during the loop, so why do you need to check a different index? Try with sources_connected = ['yes','no','yes']: the second connected source (3rd place) is skipped. Only after changing this I can see all the sources on my tv.

@andsx

You are completely right. Thanks!!