Refactor half_button to use with_state

This commit is contained in:
2020-04-27 01:25:22 +03:00
parent e615b8fbf1
commit 1c6c21518b
@@ -1,4 +1,5 @@
half:
template: with_state
size: 30px
show_icon: false
hold_action:
@@ -7,18 +8,3 @@ half:
card:
- height: 45px
- font-size: 14px
state:
- value: 'on'
styles:
card:
- background-color: var(--primary-color)
- color: black
icon:
- color: black
- value: 'home'
styles:
card:
- background-color: var(--primary-color)
- color: black
icon:
- color: black