I'm trying to add a border to a official button card based on state from my TV.
The entity media_player.tv reports
`source_list:
- TV
- Nvidia Shield
- HW-Q-Series
source: Nvidia Shield`
The button correctly changes source input on my TV to Nvidia Shield and it also reports the source Nvidia Shield above. However I can't get the card to change style based on media_player.tv state
type: button name: Nvidia Shield icon: mdi:filmstrip show_name: true show_icon: true show_state: false grid_options: columns: 3 rows: 2 tap_action: action: call-service service: media_player.select_source service_data: entity_id: media_player.tv source: Nvidia Shield styles: card: - border: | [[[ return states['media_player.tv'].state === 'playing' && states['media_player.tv'].attributes.source === 'Nvidia Shield' ? '2px solid red' : 'none'; ]]]