Workaround for media player decluttering cards in 0.110

This commit is contained in:
2020-05-20 22:46:21 +03:00
parent 1fe258ec11
commit 593cdf90ae
3 changed files with 21 additions and 20 deletions
@@ -14,13 +14,8 @@
layout: horizontal layout: horizontal
max_columns: 1 max_columns: 1
cards: cards:
- type: vertical-stack - type: custom:decluttering-card
cards: template: media_with_controls
- type: entities variables:
entities: - player: media_player.bathroom
- media_player.bathroom - player_name: Bathroom
- type: custom:decluttering-card
template: media_with_controls
variables:
- player: media_player.bathroom
- player_name: Bathroom
@@ -81,11 +81,14 @@
variables: variables:
state_indicator_id: automation.titanium_turn_off_when_idle state_indicator_id: automation.titanium_turn_off_when_idle
- type: custom:decluttering-card # TODO: Remove vertical-stack wrapper. 0.110 hack
template: media_with_controls - type: vertical-stack
variables: cards:
- player: media_player.kitchen - type: custom:decluttering-card
- player_name: Kitchen template: media_with_controls
variables:
- player: media_player.kitchen
- player_name: Kitchen
- type: horizontal-stack - type: horizontal-stack
cards: cards:
@@ -78,11 +78,14 @@
template: default template: default
entity: binary_sensor.house_mode entity: binary_sensor.house_mode
- type: custom:decluttering-card # TODO: Remove vertical-stack wrapper. 0.110 hack
template: media_with_controls - type: vertical-stack
variables: cards:
- player: media_player.master_bedroom - type: custom:decluttering-card
- player_name: Bedroom template: media_with_controls
variables:
- player: media_player.master_bedroom
- player_name: Bedroom
- type: vertical-stack - type: vertical-stack