mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +00:00
unavailable displayed on state label badge (#55)
This commit is contained in:
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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user