mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06: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) {
|
computeClasses(state) {
|
||||||
switch (state.domain) {
|
switch (state.domain) {
|
||||||
case 'binary_sensor':
|
|
||||||
return state.state === 'on' ? 'blue' : 'grey';
|
|
||||||
case 'scene':
|
case 'scene':
|
||||||
return 'green';
|
return 'green';
|
||||||
|
case 'binary_sensor':
|
||||||
case 'script':
|
case 'script':
|
||||||
return state.state === 'on' ? 'blue' : 'grey';
|
return state.state === 'on' ? 'blue' : 'grey';
|
||||||
case 'updater':
|
case 'updater':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user