Refactor code structure for improved readability and maintainability

This commit is contained in:
CeeWeasel
2026-01-19 14:47:59 -05:00
parent 6550521520
commit 97a0e678c0
84 changed files with 1614 additions and 1177 deletions
+6 -6
View File
@@ -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 %}