Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- homepage_entertainment_channels_selection_unassigned:
- sensor: vue_buttons
- trigger: event
- template: '{% if button in Entertainment and widget == "channel_list_entertainment" and if not context.ch[button] %}true{% endif %}'
- actions:
- - reflex.context.toggle:
- key: "vue.HomepageChannelSelections.{{ vue }}"
- value: "{{ button }}"
- - reflex.context.toggle:
- key: "ch.{{ button }}"
- value : "{{ vue }}"
- homepage_entertainment_channels_selection_assigned:
- sensor: vue_buttons
- trigger: event
- template: '{% if button in Entertainment and widget == "channel_list_entertainment" and if context.ch[button] %}true{% endif %}'
- actions:
- - vue.dialog.yesno
- vue: "{{ vue }}""
- title: "Confirm Channel Selection"
- message: "{{ button }} is already controlled by another stations. Are you sure you want to take control as well ?"
- yes_text: "Yes"
- no_text: "No"
- yes:
- - reflex.context.toggle:
- key: "vue.HomepageChannelSelections.{{ vue }}"
- value: "{{ button }}"
- - reflex.context.toggle:
- key: "ch.{{ button }}"
- value : "{{ vue }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement