mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
state label badge will render unknown state as dash
This commit is contained in:
parent
700d6d3738
commit
8c3fc533b1
@ -64,9 +64,8 @@ export default new Polymer({
|
||||
case 'alarm_control_panel':
|
||||
return undefined;
|
||||
case 'sensor':
|
||||
return state.state;
|
||||
default:
|
||||
return state.state;
|
||||
return state.state === 'unknown' ? '-' : state.state;
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user