From 0367b6135ed61ae19ed9d04c21f517fb2aff70be Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Wed, 29 Apr 2020 00:51:54 +0300 Subject: [PATCH] Fix tv button styles --- .../lovelace/home_dashboard/main_dashboard.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/config/lovelace/home_dashboard/main_dashboard.yaml b/config/lovelace/home_dashboard/main_dashboard.yaml index e8a6ceb..ad1bc34 100644 --- a/config/lovelace/home_dashboard/main_dashboard.yaml +++ b/config/lovelace/home_dashboard/main_dashboard.yaml @@ -68,7 +68,7 @@ - type: horizontal-stack cards: - type: custom:button-card - template: default + template: small entity: media_player.nvidia_shield name: TV icon: mdi:television @@ -76,19 +76,20 @@ action: toggle state: - value: 'playing' - styles: + styles: &on_styles card: - background-color: var(--primary-color) - color: black icon: - color: black - value: 'standby' - styles: - card: - - background-color: var(--primary-color) - - color: black - icon: - - color: black + styles: *on_styles + - value: 'on' + styles: *on_styles + - value: 'home' + styles: *on_styles + - value: 'idle' + styles: *on_styles - type: custom:button-card template: default