mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -18,7 +18,7 @@ input_select:
|
||||
name: To Screen
|
||||
options:
|
||||
- Front Room Display
|
||||
- Girls Room Hub
|
||||
- Bedroom Hub
|
||||
- Computer Area Hub
|
||||
|
||||
script:
|
||||
@@ -31,8 +31,8 @@ script:
|
||||
media_player: >
|
||||
{% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
|
||||
media_player.front_room_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Girls Room Hub') %}
|
||||
media_player.girls_room_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Bedroom Hub') %}
|
||||
media_player.bedroom_hub
|
||||
{% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
media_player.computer_area_hub
|
||||
{% endif %}
|
||||
@@ -119,7 +119,7 @@ script:
|
||||
# {% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
|
||||
# media_player.front_room_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Girls Room Hub') %}
|
||||
# media_player.girls_room_hub
|
||||
# media_player.bedroom_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
# media_player.computer_area_hub
|
||||
# {% endif %}
|
||||
@@ -152,7 +152,7 @@ script:
|
||||
# {% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
|
||||
# media_player.front_room_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Girls Room Hub') %}
|
||||
# media_player.girls_room_hub
|
||||
# media_player.bedroom_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
# media_player.computer_area_hub
|
||||
# {% endif %}
|
||||
@@ -188,7 +188,7 @@ script:
|
||||
# {% if is_state('input_select.cast_to_screen_dropdown', 'Front Room Display') %}
|
||||
# media_player.front_room_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Girls Room Hub') %}
|
||||
# media_player.girls_room_hub
|
||||
# media_player.bedroom_hub
|
||||
# {% elif is_state('input_select.cast_to_screen_dropdown', 'Computer Area Hub') %}
|
||||
# media_player.computer_area_hub
|
||||
# {% endif %}
|
||||
|
||||
Reference in New Issue
Block a user