mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Updating compiled frontend to latest version
This commit is contained in:
parent
523cd8249f
commit
48c3c44aba
@ -1,2 +1,2 @@
|
||||
""" 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user