Updating compiled frontend to latest version
This commit is contained in:
parent
523cd8249f
commit
48c3c44aba
2 changed files with 11 additions and 10 deletions
|
@ -1,2 +1,2 @@
|
||||||
""" DO NOT MODIFY. Auto-generated by build_polymer script """
|
""" DO NOT MODIFY. Auto-generated by build_polymer script """
|
||||||
VERSION = "835922d1958738763525d6670c11bfb5"
|
VERSION = "332ab144e7dc36f329ab4acb4155aab3"
|
||||||
|
|
|
@ -17942,12 +17942,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
|
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<template if="{{state_attr['friendly_name']}}">
|
{{stateObj.entityDisplay}}
|
||||||
{{state_attr['friendly_name']}}
|
|
||||||
</template>
|
|
||||||
<template if="{{!state_attr['friendly_name']}}">
|
|
||||||
{{stateObj.entityDisplay}}
|
|
||||||
</template>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="time-ago">
|
<div class="time-ago">
|
||||||
|
@ -17960,13 +17955,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template if="{{!stateUnknown}}">
|
<template if="{{!stateUnknown}}">
|
||||||
<template if="{{stateObj.state == 'on' || stateObj.state == 'off'}}">
|
<template if="{{stateObj.canToggle}}">
|
||||||
<div class="state toggle" self-center="" flex="">
|
<div class="state toggle" self-center="" flex="">
|
||||||
<paper-toggle-button checked="{{toggleChecked}}">
|
<paper-toggle-button checked="{{toggleChecked}}">
|
||||||
</paper-toggle-button>
|
</paper-toggle-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template if="{{stateObj.state != 'on' && stateObj.state != 'off'}}">
|
<template if="{{!stateObj.canToggle}}">
|
||||||
<div class="state text">{{stateObj.stateDisplay}}</div>
|
<div class="state text">{{stateObj.stateDisplay}}</div>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
@ -20124,8 +20119,14 @@ core-item {
|
||||||
var parts = state.entity_id.split(".");
|
var parts = state.entity_id.split(".");
|
||||||
state.domain = parts[0];
|
state.domain = parts[0];
|
||||||
state.entity = parts[1];
|
state.entity = parts[1];
|
||||||
state.entityDisplay = state.entity.replace(/_/g, " ");
|
|
||||||
state.stateDisplay = state.state.replace(/_/g, " ");
|
state.stateDisplay = state.state.replace(/_/g, " ");
|
||||||
|
state.canToggle = state.state == "on" || state.state == "off"
|
||||||
|
|
||||||
|
if(state.attributes.friendly_name) {
|
||||||
|
state.entityDisplay = state.attributes.friendly_name;
|
||||||
|
} else {
|
||||||
|
state.entityDisplay = state.entity.replace(/_/g, " ");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// call api methods
|
// call api methods
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue