Refactor: entity_id outside of data_template where posibile

This commit is contained in:
2020-04-25 01:47:10 +03:00
parent e5c4681a0b
commit 18d7a24b67
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -13,11 +13,11 @@ script:
data_template:
volume_level: "{{ volume_level | default(0.2) }}"
- service: media_player.shuffle_set
entity_id: media_player.master_bedroom
data_template:
entity_id: media_player.master_bedroom
shuffle: "{{ shuffle | default(true) }}"
- service: media_player.select_source
entity_id: media_player.master_bedroom
data_template:
entity_id: media_player.master_bedroom
source: "{{ playlist | default('Evening Chill') }}"