mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 15:04:24 +01:00
fix unsubscribePowerSubscriptions
This commit is contained in:
@@ -6011,7 +6011,7 @@ function unsubscribePowerSubscriptions(): void {
|
||||
}
|
||||
}
|
||||
for (let i = 0; i < config.subPages.length; i++) {
|
||||
const page: NSPanel.PageType = config.pages[i];
|
||||
const page: NSPanel.PageType = config.subPages[i];
|
||||
if (isPagePower(page)) {
|
||||
let powerID = page.items[0].id;
|
||||
unsubscribe(powerID + '.ACTUAL');
|
||||
|
||||
Reference in New Issue
Block a user