Refactor: entity_id outside of data:

This commit is contained in:
2020-04-25 01:45:42 +03:00
parent 3d377523e6
commit e5c4681a0b
5 changed files with 24 additions and 41 deletions
+3 -6
View File
@@ -117,8 +117,7 @@ automation:
state: "music"
action:
- service: media_player.media_play_pause
data:
entity_id: media_player.living_room
entity_id: media_player.living_room
- alias: Magic Cube · Music · Volume down on rotate left
trigger:
@@ -138,8 +137,7 @@ automation:
state: "music"
action:
- service: media_player.volume_down
data:
entity_id: media_player.living_room
entity_id: media_player.living_room
- alias: Magic Cube · Music · Volume up on rotate right
trigger:
@@ -159,8 +157,7 @@ automation:
state: "music"
action:
- service: media_player.volume_up
data:
entity_id: media_player.living_room
entity_id: media_player.living_room
#
# ─── CUSTOMIZATION ──────────────────────────────────────────────────────────────