mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Combined with script
This commit is contained in:
parent
c39daa6a59
commit
717a3699b2
@ -39,10 +39,9 @@ export default new Polymer({
|
||||
|
||||
computeClasses(state) {
|
||||
switch (state.domain) {
|
||||
case 'binary_sensor':
|
||||
return state.state === 'on' ? 'blue' : 'grey';
|
||||
case 'scene':
|
||||
return 'green';
|
||||
case 'binary_sensor':
|
||||
case 'script':
|
||||
return state.state === 'on' ? 'blue' : 'grey';
|
||||
case 'updater':
|
||||
|
Loading…
x
Reference in New Issue
Block a user