after calling a service on a group, update all states
parent
895ba6adbc
commit
ece0902ab2
|
@ -1,2 +1,2 @@
|
||||||
""" DO NOT MODIFY. Auto-generated by build_polymer script """
|
""" DO NOT MODIFY. Auto-generated by build_polymer script """
|
||||||
VERSION = "58011acca6d6fb5ec54edf5714b8c476"
|
VERSION = "6ce8abfbeaacbe30baeffc8875c023e5"
|
||||||
|
|
|
@ -10239,6 +10239,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
background-color: #039be5;
|
background-color: #039be5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
state-badge[data-state=on][data-domain=light] {
|
||||||
|
color: #fff176;
|
||||||
|
}
|
||||||
|
|
||||||
.name, .state.text {
|
.name, .state.text {
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
|
@ -10266,20 +10270,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
/* filling of circle when checked */
|
/* filling of circle when checked */
|
||||||
paper-toggle-button::shadow paper-radio-button::shadow #onRadio {
|
paper-toggle-button::shadow paper-radio-button::shadow #onRadio {
|
||||||
background-color: #039be5;
|
background-color: #039be5;
|
||||||
transition: background-color .2s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* line when checked */
|
/* line when checked */
|
||||||
paper-toggle-button::shadow #toggleBar[checked] {
|
paper-toggle-button::shadow #toggleBar[checked] {
|
||||||
background-color: #039be5;
|
background-color: #039be5;
|
||||||
transition: background-color .2s;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div horizontal="" justified="" layout="">
|
<div horizontal="" justified="" layout="">
|
||||||
|
|
||||||
<div class="entity">
|
<div class="entity">
|
||||||
<state-badge domain="{{domain}}" state="{{state}}" on-click="{{editClicked}}">
|
<state-badge domain="{{domain}}" state="{{state}}" data-domain="{{domain}}" data-state="{{state}}" on-click="{{editClicked}}">
|
||||||
</state-badge>
|
</state-badge>
|
||||||
|
|
||||||
<div class="info">
|
<div class="info">
|
||||||
|
@ -13897,8 +13899,13 @@ core-item {
|
||||||
|
|
||||||
// if entity_id is a string, update 1 state, else all.
|
// if entity_id is a string, update 1 state, else all.
|
||||||
if(typeof(parameters.entity_id === "string")) {
|
if(typeof(parameters.entity_id === "string")) {
|
||||||
update_func = function() {
|
// if it is a group, fetch all
|
||||||
this.fetchState(parameters.entity_id);
|
if(parameters.entity_id.slice(0,6) == "group.") {
|
||||||
|
update_func = this.fetchStates
|
||||||
|
} else {
|
||||||
|
update_func = function() {
|
||||||
|
this.fetchState(parameters.entity_id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
update_func = this.fetchStates
|
update_func = this.fetchStates
|
||||||
|
|
|
@ -173,8 +173,13 @@
|
||||||
|
|
||||||
// if entity_id is a string, update 1 state, else all.
|
// if entity_id is a string, update 1 state, else all.
|
||||||
if(typeof(parameters.entity_id === "string")) {
|
if(typeof(parameters.entity_id === "string")) {
|
||||||
update_func = function() {
|
// if it is a group, fetch all
|
||||||
this.fetchState(parameters.entity_id);
|
if(parameters.entity_id.slice(0,6) == "group.") {
|
||||||
|
update_func = this.fetchStates
|
||||||
|
} else {
|
||||||
|
update_func = function() {
|
||||||
|
this.fetchState(parameters.entity_id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
update_func = this.fetchStates
|
update_func = this.fetchStates
|
||||||
|
|
Loading…
Reference in New Issue