Closed zyi840449 closed 2 weeks ago
When I use the following sample code, the switch background will turn green when turned on; but then immediately change to the system default orange.
type: custom:bubble-card card_type: button entity: switch.test name: Test styles: | .bubble-button-card-container { background-color: ${state === 'on' ? 'green' : 'red'} !important; }
Same issue. @zyi840449 did you fix it ?
When I use the following sample code, the switch background will turn green when turned on; but then immediately change to the system default orange.
type: custom:bubble-card card_type: button entity: switch.test name: Test styles: | .bubble-button-card-container { background-color: ${state === 'on' ? 'green' : 'red'} !important; }