Trying to understand how nested JSON values work and how to check them in a template

I’m a little confused on why this doesn’t work. It’s always false even if the state of it is really those values.

{{ state_attr('light.kitchen_island_center', 'hs_color') == [ 120.472, 49.804 ] }}

But this does work to confirm the state of those attributes:

{{ state_attr('light.kitchen_island_center', 'hs_color')[0] == 120.472 and state_attr('light.kitchen_island_center', 'hs_color')[1] == 49.804 }}

I am sure I’m missing something simple. I’ve tried these variations and can’t seem to get it working:

{{ state_attr('light.kitchen_island_center', 'hs_color') == "120.472, 49.804" }}
{{ state_attr('light.kitchen_island_center', 'hs_color') == [ "120.472, 49.804" ] }}
{{ state_attr('light.kitchen_island_center', 'hs_color') == [ "120.472", "49.804" ] }}
{{ state_attr('light.kitchen_island_center', 'hs_color') == [ 120.472, 49.804 ] }}

Any thoughts? Thanks!

Dennis

Played around with it and found the answer

{{ state_attr('light.kitchen_island_center', 'hs_color') == (120.472,49.804) }}

Returns true if those attributes match.