mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-13 04:50:29 +00:00
unavailable displayed on state label badge (#55)
This commit is contained in:
committed by
Paulus Schoutsen
parent
40027eaac6
commit
185a8c0c9f
@@ -69,6 +69,9 @@ export default new Polymer({
|
||||
},
|
||||
|
||||
computeIcon(state) {
|
||||
if (state.state === 'unavailable') {
|
||||
return null;
|
||||
}
|
||||
switch (state.domain) {
|
||||
case 'alarm_control_panel':
|
||||
if (state.state === 'pending') {
|
||||
@@ -99,6 +102,9 @@ export default new Polymer({
|
||||
},
|
||||
|
||||
computeLabel(state) {
|
||||
if (state.state === 'unavailable') {
|
||||
return 'unavai';
|
||||
}
|
||||
switch (state.domain) {
|
||||
case 'scene':
|
||||
case 'script':
|
||||
|
||||
Reference in New Issue
Block a user