mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-26 19:02:15 +01:00
Merge pull request #1421 from lubepi/patch-1
Fix: Display waking from screensaver on entity changes after thermostat interaction
This commit is contained in:
@@ -8780,7 +8780,11 @@ function unsubscribePowerSubscriptions (): void {
|
|||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
function subscribePowerSubscriptions (id: string): void {
|
function subscribePowerSubscriptions (id: string): void {
|
||||||
on({id: id + '.ACTUAL', change: 'ne'}, async function () {
|
const subscriptionKey = 'power_' + id + '.ACTUAL';
|
||||||
|
if (subscriptions.hasOwnProperty(subscriptionKey)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
subscriptions[subscriptionKey] = on({id: id + '.ACTUAL', change: 'ne'}, async function () {
|
||||||
(function () {
|
(function () {
|
||||||
if (timeoutPower) {
|
if (timeoutPower) {
|
||||||
clearTimeout(timeoutPower);
|
clearTimeout(timeoutPower);
|
||||||
|
|||||||
Reference in New Issue
Block a user