Skip to content
Snippets Groups Projects
Commit 48c3c44a authored by Paulus Schoutsen's avatar Paulus Schoutsen
Browse files

Updating compiled frontend to latest version

parent 523cd824
No related branches found
No related tags found
No related merge requests found
""" 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="name">
<template if="{{state_attr['friendly_name']}}">
{{state_attr['friendly_name']}}
</template>
<template if="{{!state_attr['friendly_name']}}">
{{stateObj.entityDisplay}}
</template>
{{stateObj.entityDisplay}}
</div>
<div class="time-ago">
......@@ -17960,13 +17955,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
</div>
<template if="{{!stateUnknown}}">
<template if="{{stateObj.state == 'on' || stateObj.state == 'off'}}">
<template if="{{stateObj.canToggle}}">
<div class="state toggle" self-center="" flex="">
<paper-toggle-button checked="{{toggleChecked}}">
</paper-toggle-button>
</div>
</template>
<template if="{{stateObj.state != 'on' && stateObj.state != 'off'}}">
<template if="{{!stateObj.canToggle}}">
<div class="state text">{{stateObj.stateDisplay}}</div>
</template>
</template>
......@@ -20124,8 +20119,14 @@ core-item {
var parts = state.entity_id.split(".");
state.domain = parts[0];
state.entity = parts[1];
state.entityDisplay = state.entity.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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment