fix: сохранить identity карточек Masonry после reload (#561)

Сводная панель теперь использует канонический порядок карточек Home Assistant и не переносит локальные настройки между визуальными колонками после remount.

Issue: #561
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-09-13 02:04:45 +03:00
parent d6b33b115b
commit bb35af993a
54 changed files with 744 additions and 425 deletions
+138 -138
View File
@@ -1,108 +1,108 @@
{
"schema": 1,
"fingerprint": "2f536ea93b74815c8832bf3e5dd53435bbc5e35ca7478733701357f0038c3fce",
"fingerprint": "7f691ad2ff5e047357a9b8fe67f0b6b29bc78a50cf6ba022564655ed43f9b403",
"entry": "houseplan-card.js",
"panelEntry": "houseplan-panel.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-8Ch93AMN.js",
"houseplan-assets/houseplan-card-D5-gQL2X.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 288244,
"initialViewGzipBytes": 288240,
"initialPanelFiles": [
"houseplan-assets/houseplan-card-8Ch93AMN.js",
"houseplan-assets/houseplan-card-D5-gQL2X.js",
"houseplan-panel.js"
],
"initialPanelGzipBytes": 289767,
"initialPanelGzipBytes": 289763,
"initialPanelOnlyFiles": [
"houseplan-panel.js"
],
"initialPanelOnlyGzipBytes": 2327,
"initialPanelOnlyGzipBytes": 2328,
"lazyFiles": [
"houseplan-assets/backdrop-pick-CciPZUUr.js",
"houseplan-assets/de-uycSOqOJ.js",
"houseplan-assets/editor-daj6fW7q.js",
"houseplan-assets/fr-CMnfhkfR.js",
"houseplan-assets/furniture-plan-art.generated-KT449eLB.js",
"houseplan-assets/guard-BXhRxwsH.js",
"houseplan-assets/houseplan-editor-runtime-EZaBVNKm.js",
"houseplan-assets/houseplan-onboarding-runtime-beV9FiSd.js",
"houseplan-assets/hp-zigbee-topology-overlay-DnPLAFkF.js",
"houseplan-assets/iso-scene-render-XD6IkUPA.js",
"houseplan-assets/live-interaction-runtime-BCgeh23Y.js",
"houseplan-assets/pdf-export-B5BBwVOF.js",
"houseplan-assets/summary-panel-runtime-loaded-aJMNl6Eh.js",
"houseplan-assets/zigbee-topology-8yx_3zIp.js",
"houseplan-assets/zigbee-topology-runtime-DBp1bXKD.js"
"houseplan-assets/backdrop-pick-Cx1rzHVm.js",
"houseplan-assets/de-PVicgu8H.js",
"houseplan-assets/editor-KW_7e0X6.js",
"houseplan-assets/fr-Bcbp4NLX.js",
"houseplan-assets/furniture-plan-art.generated-DMUROwB0.js",
"houseplan-assets/guard-Bu7iGCp-.js",
"houseplan-assets/houseplan-editor-runtime-BopXHnLy.js",
"houseplan-assets/houseplan-onboarding-runtime-B1rwTEl5.js",
"houseplan-assets/hp-zigbee-topology-overlay-C7sDjKUn.js",
"houseplan-assets/iso-scene-render-BPDEp3nh.js",
"houseplan-assets/live-interaction-runtime-BBPN6W4s.js",
"houseplan-assets/pdf-export-tbCdeZ1O.js",
"houseplan-assets/summary-panel-runtime-loaded-BDfwbReH.js",
"houseplan-assets/zigbee-topology-fKHn1P2M.js",
"houseplan-assets/zigbee-topology-runtime-SCMmk9F0.js"
],
"lazyGzipBytes": 417495,
"lazyGzipBytes": 417855,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-CciPZUUr.js",
"houseplan-assets/editor-daj6fW7q.js",
"houseplan-assets/furniture-plan-art.generated-KT449eLB.js",
"houseplan-assets/guard-BXhRxwsH.js",
"houseplan-assets/houseplan-editor-runtime-EZaBVNKm.js",
"houseplan-assets/zigbee-topology-8yx_3zIp.js"
"houseplan-assets/backdrop-pick-Cx1rzHVm.js",
"houseplan-assets/editor-KW_7e0X6.js",
"houseplan-assets/furniture-plan-art.generated-DMUROwB0.js",
"houseplan-assets/guard-Bu7iGCp-.js",
"houseplan-assets/houseplan-editor-runtime-BopXHnLy.js",
"houseplan-assets/zigbee-topology-fKHn1P2M.js"
],
"lazyEditorGzipBytes": 204999,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-CciPZUUr.js",
"houseplan-assets/houseplan-onboarding-runtime-beV9FiSd.js"
"houseplan-assets/backdrop-pick-Cx1rzHVm.js",
"houseplan-assets/houseplan-onboarding-runtime-B1rwTEl5.js"
],
"lazyOnboardingGzipBytes": 13919,
"lazyOnboardingGzipBytes": 13920,
"lazyLocaleFiles": [
"houseplan-assets/de-uycSOqOJ.js",
"houseplan-assets/fr-CMnfhkfR.js"
"houseplan-assets/de-PVicgu8H.js",
"houseplan-assets/fr-Bcbp4NLX.js"
],
"lazyLocaleGzipBytes": 54822,
"lazyLocaleGzipBytes": 54821,
"lazyIsometricFiles": [
"houseplan-assets/guard-BXhRxwsH.js",
"houseplan-assets/iso-scene-render-XD6IkUPA.js"
"houseplan-assets/guard-Bu7iGCp-.js",
"houseplan-assets/iso-scene-render-BPDEp3nh.js"
],
"lazyIsometricGzipBytes": 13458,
"lazyFurnitureArtFiles": [
"houseplan-assets/furniture-plan-art.generated-KT449eLB.js"
"houseplan-assets/furniture-plan-art.generated-DMUROwB0.js"
],
"lazyFurnitureArtGzipBytes": 10251,
"lazyFurnitureArtGzipBytes": 10254,
"lazyPdfFiles": [
"houseplan-assets/furniture-plan-art.generated-KT449eLB.js",
"houseplan-assets/pdf-export-B5BBwVOF.js"
"houseplan-assets/furniture-plan-art.generated-DMUROwB0.js",
"houseplan-assets/pdf-export-tbCdeZ1O.js"
],
"lazyPdfGzipBytes": 120122,
"lazyPdfGzipBytes": 120127,
"files": [
{
"path": "houseplan-assets/backdrop-pick-CciPZUUr.js",
"sha256": "e1a28d74ad3b3e8b3537e130469c6011300a67764bc8d4eb8f7af063afd652c8",
"path": "houseplan-assets/backdrop-pick-Cx1rzHVm.js",
"sha256": "5ac69178ff558d5a286e430377719eab9da5570847138e6bc7918deaec9347b6",
"rawBytes": 19956,
"gzipBytes": 6881,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-8Ch93AMN.js"
"houseplan-assets/houseplan-card-D5-gQL2X.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-uycSOqOJ.js",
"sha256": "1f1025e042c2beefdb858ed428e0c6873b0711f66411c2cd5c4ad3d62e9553f7",
"path": "houseplan-assets/de-PVicgu8H.js",
"sha256": "39d8cd23996b09192ed23da739726abd57c8c1607aeceecc9b262884c1559422",
"rawBytes": 91402,
"gzipBytes": 27694,
"gzipBytes": 27693,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-daj6fW7q.js",
"sha256": "1103cb4da4a0bc47c04801487c285e945fe4ca7926adf6e52800bbfbf5ec27ea",
"path": "houseplan-assets/editor-KW_7e0X6.js",
"sha256": "3bc6b0af0176df4a0b3ffb42c775ee4faacb77177ea90278662554adfcfbb3b1",
"rawBytes": 3832,
"gzipBytes": 1584,
"gzipBytes": 1585,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-8Ch93AMN.js"
"houseplan-assets/houseplan-card-D5-gQL2X.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-CMnfhkfR.js",
"sha256": "153f722d7983dbe9318280e36bc440ee0aaee395921627e86e6e680f775304b6",
"path": "houseplan-assets/fr-Bcbp4NLX.js",
"sha256": "a91918ed8aa499ae784703c8fb621f20945302635d3a6083809522b13ca315ed",
"rawBytes": 93667,
"gzipBytes": 27128,
"isEntry": false,
@@ -110,202 +110,202 @@
"dynamicImports": []
},
{
"path": "houseplan-assets/furniture-plan-art.generated-KT449eLB.js",
"sha256": "e218436400a1057aa9593cb1c27e8c8d58b49a2ac8ad1573e5065bddfc6f5214",
"path": "houseplan-assets/furniture-plan-art.generated-DMUROwB0.js",
"sha256": "e4cf879989b7bb1bdb9398c5a12a4d0d226dcc3fe8280cb0e0669ac85e8ba470",
"rawBytes": 33655,
"gzipBytes": 10251,
"gzipBytes": 10254,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/guard-BXhRxwsH.js",
"sha256": "c39dc15896a989fa4120e00099d4686e9340cb83d7eba6df26fe28f6db0b6909",
"path": "houseplan-assets/guard-Bu7iGCp-.js",
"sha256": "b5fc40aadd99b49a4e6186bca658ea0a62f3a65d0b387e50ffc7a4c9c368bc05",
"rawBytes": 518,
"gzipBytes": 368,
"gzipBytes": 370,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-8Ch93AMN.js"
"houseplan-assets/houseplan-card-D5-gQL2X.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-8Ch93AMN.js",
"sha256": "3c2e105a32596279be0b78199d3d8ef5570e0ef8d17bf30a16174435bc8d12a3",
"path": "houseplan-assets/houseplan-card-D5-gQL2X.js",
"sha256": "6fba78b33c6aac2c0fda8ed387cc5b3b4f67c576963e03b5afdb092d3d61b250",
"rawBytes": 1023948,
"gzipBytes": 287440,
"gzipBytes": 287435,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-uycSOqOJ.js",
"houseplan-assets/editor-daj6fW7q.js",
"houseplan-assets/fr-CMnfhkfR.js",
"houseplan-assets/furniture-plan-art.generated-KT449eLB.js",
"houseplan-assets/houseplan-editor-runtime-EZaBVNKm.js",
"houseplan-assets/houseplan-onboarding-runtime-beV9FiSd.js",
"houseplan-assets/hp-zigbee-topology-overlay-DnPLAFkF.js",
"houseplan-assets/iso-scene-render-XD6IkUPA.js",
"houseplan-assets/live-interaction-runtime-BCgeh23Y.js",
"houseplan-assets/pdf-export-B5BBwVOF.js",
"houseplan-assets/summary-panel-runtime-loaded-aJMNl6Eh.js"
"houseplan-assets/de-PVicgu8H.js",
"houseplan-assets/editor-KW_7e0X6.js",
"houseplan-assets/fr-Bcbp4NLX.js",
"houseplan-assets/furniture-plan-art.generated-DMUROwB0.js",
"houseplan-assets/houseplan-editor-runtime-BopXHnLy.js",
"houseplan-assets/houseplan-onboarding-runtime-B1rwTEl5.js",
"houseplan-assets/hp-zigbee-topology-overlay-C7sDjKUn.js",
"houseplan-assets/iso-scene-render-BPDEp3nh.js",
"houseplan-assets/live-interaction-runtime-BBPN6W4s.js",
"houseplan-assets/pdf-export-tbCdeZ1O.js",
"houseplan-assets/summary-panel-runtime-loaded-BDfwbReH.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-EZaBVNKm.js",
"sha256": "5d2e22c3b55bf49f4141e7e642e37b5c100b36e6146cb7a1bf57876df4d2dea9",
"path": "houseplan-assets/houseplan-editor-runtime-BopXHnLy.js",
"sha256": "38fcba7002edf0af1e183f70fdf32477156ffd617d63abb90c5cbf2a11666e21",
"rawBytes": 668813,
"gzipBytes": 178483,
"gzipBytes": 178482,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-CciPZUUr.js",
"houseplan-assets/furniture-plan-art.generated-KT449eLB.js",
"houseplan-assets/guard-BXhRxwsH.js",
"houseplan-assets/houseplan-card-8Ch93AMN.js",
"houseplan-assets/zigbee-topology-8yx_3zIp.js"
"houseplan-assets/backdrop-pick-Cx1rzHVm.js",
"houseplan-assets/furniture-plan-art.generated-DMUROwB0.js",
"houseplan-assets/guard-Bu7iGCp-.js",
"houseplan-assets/houseplan-card-D5-gQL2X.js",
"houseplan-assets/zigbee-topology-fKHn1P2M.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-DBp1bXKD.js"
"houseplan-assets/zigbee-topology-runtime-SCMmk9F0.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-beV9FiSd.js",
"sha256": "4345517490d8e0e52e3c5c509502c85785902d78911c0921064e13c017bd03fd",
"path": "houseplan-assets/houseplan-onboarding-runtime-B1rwTEl5.js",
"sha256": "e39fdfe6b9d5d9cbb11f900f3d6a67f7d6bec386f57c6c1d99196fb828c9db24",
"rawBytes": 28287,
"gzipBytes": 7038,
"gzipBytes": 7039,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-CciPZUUr.js",
"houseplan-assets/houseplan-card-8Ch93AMN.js"
"houseplan-assets/backdrop-pick-Cx1rzHVm.js",
"houseplan-assets/houseplan-card-D5-gQL2X.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-DnPLAFkF.js",
"sha256": "64115cec8a70d6c12efa33bf2c54c97df34c77aba366d8ee8148a146a9a4c28f",
"path": "houseplan-assets/hp-zigbee-topology-overlay-C7sDjKUn.js",
"sha256": "3db5de67d73b499285bc7370d8f75e7f7fb796303baeca4fb6ec79a0a56f9f13",
"rawBytes": 10756,
"gzipBytes": 3683,
"gzipBytes": 3682,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-8Ch93AMN.js",
"houseplan-assets/zigbee-topology-8yx_3zIp.js",
"houseplan-assets/zigbee-topology-runtime-DBp1bXKD.js"
"houseplan-assets/houseplan-card-D5-gQL2X.js",
"houseplan-assets/zigbee-topology-fKHn1P2M.js",
"houseplan-assets/zigbee-topology-runtime-SCMmk9F0.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/iso-scene-render-XD6IkUPA.js",
"sha256": "efe46a8662594bab6dc4669e9e5820be74e89be95ecbb4892ad7a3383d867e33",
"path": "houseplan-assets/iso-scene-render-BPDEp3nh.js",
"sha256": "1217006c56d568aa7a25874b800863c8dfb22445a5aa44d1aa12c99b096725a1",
"rawBytes": 38562,
"gzipBytes": 13090,
"gzipBytes": 13088,
"isEntry": false,
"imports": [
"houseplan-assets/guard-BXhRxwsH.js",
"houseplan-assets/houseplan-card-8Ch93AMN.js"
"houseplan-assets/guard-Bu7iGCp-.js",
"houseplan-assets/houseplan-card-D5-gQL2X.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-BCgeh23Y.js",
"sha256": "b22ef9073783f3cbaa4dfd756f4cff06607c27374622dc4b69bf5b02f61e81c9",
"path": "houseplan-assets/live-interaction-runtime-BBPN6W4s.js",
"sha256": "96875d5266d519e27ec7d6c86a14f3fb97002e6e0e40f02ad2cdd2f1e5223814",
"rawBytes": 6233,
"gzipBytes": 2499,
"gzipBytes": 2498,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-8Ch93AMN.js"
"houseplan-assets/houseplan-card-D5-gQL2X.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/pdf-export-B5BBwVOF.js",
"sha256": "b7a28b5e17e70a0a41e78ffae7cf8c99afaae1a7407098c21e1c8334e8162949",
"path": "houseplan-assets/pdf-export-tbCdeZ1O.js",
"sha256": "9db8fd5014d17a2e56bd5eede91f31ad70884f2c598bbac3c0462fd35887a9a5",
"rawBytes": 236244,
"gzipBytes": 109871,
"gzipBytes": 109873,
"isEntry": false,
"imports": [
"houseplan-assets/furniture-plan-art.generated-KT449eLB.js",
"houseplan-assets/houseplan-card-8Ch93AMN.js"
"houseplan-assets/furniture-plan-art.generated-DMUROwB0.js",
"houseplan-assets/houseplan-card-D5-gQL2X.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-editor-BRkGpUh9.js",
"sha256": "2987629d3b00a1c19ecbb16bddf8378080e48eb8424589980102d8f3243236b7",
"path": "houseplan-assets/summary-panel-editor-BST7KUGK.js",
"sha256": "475289de9cff31d1c6e619a06a19031c4a54c1e32d74545e650c0254e6aae160",
"rawBytes": 14824,
"gzipBytes": 3401,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-8Ch93AMN.js",
"houseplan-assets/summary-panel-runtime-loaded-aJMNl6Eh.js"
"houseplan-assets/houseplan-card-D5-gQL2X.js",
"houseplan-assets/summary-panel-runtime-loaded-BDfwbReH.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-metrics-i2JV6WHE.js",
"sha256": "488946689796491660ab1bdd4678c4b40cc0a313470564d3035c8a0e9589212f",
"path": "houseplan-assets/summary-panel-metrics-Dzc2iD0Z.js",
"sha256": "3f09e0e8e033329f8cdeb5f31b185e7fa736724dbb77fb4a53cf1d673bbe3700",
"rawBytes": 2610,
"gzipBytes": 1306,
"gzipBytes": 1308,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-8Ch93AMN.js"
"houseplan-assets/houseplan-card-D5-gQL2X.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/summary-panel-runtime-loaded-aJMNl6Eh.js",
"sha256": "4065e3510d83c9f90c0d940cabe5eb6559d6c0703ff5604000c5d5f474d48d37",
"rawBytes": 72272,
"gzipBytes": 19729,
"path": "houseplan-assets/summary-panel-runtime-loaded-BDfwbReH.js",
"sha256": "a5dcac0399a9162f21cc57336e9752368e69262e2bab8cdae2fdeac6900a5252",
"rawBytes": 73366,
"gzipBytes": 20090,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-8Ch93AMN.js"
"houseplan-assets/houseplan-card-D5-gQL2X.js"
],
"dynamicImports": [
"houseplan-assets/summary-panel-editor-BRkGpUh9.js",
"houseplan-assets/summary-panel-metrics-i2JV6WHE.js"
"houseplan-assets/summary-panel-editor-BST7KUGK.js",
"houseplan-assets/summary-panel-metrics-Dzc2iD0Z.js"
]
},
{
"path": "houseplan-assets/zigbee-topology-8yx_3zIp.js",
"sha256": "921ec7d673d3002fe9b7ead32f66f2ae51bb282388d560f3d6057bf7ef777251",
"path": "houseplan-assets/zigbee-topology-fKHn1P2M.js",
"sha256": "bf0c9cd5abce367727baa339909de64245f9e27ae6c1a65139a45d95242953aa",
"rawBytes": 18961,
"gzipBytes": 7432,
"gzipBytes": 7427,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-8Ch93AMN.js"
"houseplan-assets/houseplan-card-D5-gQL2X.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-DBp1bXKD.js",
"sha256": "26f39d1e04162a323f1f839cf777d6b8858bc224c14d9a009af18978cd345bc9",
"path": "houseplan-assets/zigbee-topology-runtime-SCMmk9F0.js",
"sha256": "8de9bd6b736a02a162e4653b1903dd15afa8f1cec14b378d6c0d59d6ab782448",
"rawBytes": 3941,
"gzipBytes": 1764,
"gzipBytes": 1765,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-8Ch93AMN.js",
"houseplan-assets/zigbee-topology-8yx_3zIp.js"
"houseplan-assets/houseplan-card-D5-gQL2X.js",
"houseplan-assets/zigbee-topology-fKHn1P2M.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "c8ffb958eb61db62b5b244addffea9304413311c2ba655db4dd4546595d826da",
"sha256": "92b18eb40d7bd7bca662dfa50a0b71c2724bc638ab4950564e65b7141897acfe",
"rawBytes": 1205,
"gzipBytes": 804,
"gzipBytes": 805,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-8Ch93AMN.js"
"houseplan-assets/houseplan-card-D5-gQL2X.js"
],
"dynamicImports": []
},
{
"path": "houseplan-panel.js",
"sha256": "5c5492c7255657d35e560b6307540464868c3df544ecb48908709f823798211a",
"sha256": "0b030b81fa969889d7bdcca00711c8c712766b0abddca8338cacb31426d44733",
"rawBytes": 6165,
"gzipBytes": 2327,
"gzipBytes": 2328,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-8Ch93AMN.js"
"houseplan-assets/houseplan-card-D5-gQL2X.js"
],
"dynamicImports": []
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,14 +1,14 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="2f536ea93b74815c8832bf3e5dd53435bbc5e35ca7478733701357f0038c3fce";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-8Ch93AMN.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="7f691ad2ff5e047357a9b8fe67f0b6b29bc78a50cf6ba022564655ed43f9b403";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-D5-gQL2X.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
.computeLabel=${e=>h[e.name]||e.name}
.computeLabel=${e=>f[e.name]||e.name}
@value-changed=${this._valueChanged}
></ha-form>`;return c`
${d(f.slice(0,3))}
${d(h.slice(0,3))}
${_?c`<div class="default-floor-error" role="alert"
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
${t(s,"editor.default_floor_missing",{id:_})}
</div>`:a}
${d(f.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
${d(h.slice(3))}
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="2f536ea93b74815c8832bf3e5dd53435bbc5e35ca7478733701357f0038c3fce";import{dS as r,dT as t,dU as e}from"./houseplan-card-8Ch93AMN.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="7f691ad2ff5e047357a9b8fe67f0b6b29bc78a50cf6ba022564655ed43f9b403";import{dS as r,dT as t,dU as e}from"./houseplan-card-D5-gQL2X.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="2f536ea93b74815c8832bf3e5dd53435bbc5e35ca7478733701357f0038c3fce";import{b as a,A as e}from"./houseplan-card-8Ch93AMN.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-aJMNl6Eh.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="7f691ad2ff5e047357a9b8fe67f0b6b29bc78a50cf6ba022564655ed43f9b403";import{b as a,A as e}from"./houseplan-card-D5-gQL2X.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-BDfwbReH.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
<input id="summary-local-show" data-summary-local-show type="checkbox"
@@ -0,0 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="7f691ad2ff5e047357a9b8fe67f0b6b29bc78a50cf6ba022564655ed43f9b403";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as l,a0 as c,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-D5-gQL2X.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,l="entity"===r?e.registry.entities?.[s]:null,c="device"===r?s:l?.device_id,u="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(s))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*b(l,c,u=_){try{let d=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(l,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function h(e,t,n=_){const i=b(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function p(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{b as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
@@ -1 +0,0 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="2f536ea93b74815c8832bf3e5dd53435bbc5e35ca7478733701357f0038c3fce";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-8Ch93AMN.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,u="device"===r?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,l,u=_){try{let d=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="2f536ea93b74815c8832bf3e5dd53435bbc5e35ca7478733701357f0038c3fce";import{n as t,b as n}from"./zigbee-topology-8yx_3zIp.js";import{B as e}from"./houseplan-card-8Ch93AMN.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="7f691ad2ff5e047357a9b8fe67f0b6b29bc78a50cf6ba022564655ed43f9b403";import{n as t,b as n}from"./zigbee-topology-fKHn1P2M.js";import{B as e}from"./houseplan-card-D5-gQL2X.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
+1 -1
View File
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="2f536ea93b74815c8832bf3e5dd53435bbc5e35ca7478733701357f0038c3fce";try{await import("./houseplan-assets/houseplan-card-8Ch93AMN.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="7f691ad2ff5e047357a9b8fe67f0b6b29bc78a50cf6ba022564655ed43f9b403";try{await import("./houseplan-assets/houseplan-card-D5-gQL2X.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
+1 -1
View File
File diff suppressed because one or more lines are too long