mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-06 22:49:16 +00:00
feat: выбор граней окон для солнечных лучей (#577)
Issue: #577 User-Visible: yes
This commit is contained in:
@@ -91,7 +91,7 @@ MAX_IMPORT_PREVIEWS_TOTAL = 3
|
||||
DEFAULT_CONFIG: dict[str, object] = {
|
||||
"spaces": [],
|
||||
"markers": [],
|
||||
"settings": {"bg_mode": "daynight"},
|
||||
"settings": {"bg_mode": "daynight", "sun_ray_origin": "inner"},
|
||||
}
|
||||
|
||||
# #42: THE stable public error-code contract. Every code a user-facing
|
||||
|
||||
@@ -1,295 +1,295 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "0aa07f15a35e57da89774909bc60ec4f962331aec1df3963cc08462a0c3abf5e",
|
||||
"fingerprint": "530ccf77162ec68ef4b53a77b8f84ff0fffe489fa26b18459248ce23d527db33",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js",
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 290379,
|
||||
"initialViewGzipBytes": 290629,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js",
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 291901,
|
||||
"initialPanelGzipBytes": 292151,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2325,
|
||||
"initialPanelOnlyGzipBytes": 2327,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-Caayxvt2.js",
|
||||
"houseplan-assets/de-JVEEGD9u.js",
|
||||
"houseplan-assets/editor-C5Zq-3aA.js",
|
||||
"houseplan-assets/fr-B-ete5Dh.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-MsQg9zvn.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BNMtEwiN.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D2XH4RQC.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-D3IWAxB8.js",
|
||||
"houseplan-assets/iso-scene-render-ceJKJKhC.js",
|
||||
"houseplan-assets/live-interaction-runtime-CxW-k-p_.js",
|
||||
"houseplan-assets/pdf-export-BAtsOfAV.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-BcKBuVQ7.js",
|
||||
"houseplan-assets/zigbee-topology-DlU7AXvw.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-CWcX1vcd.js"
|
||||
"houseplan-assets/backdrop-pick-CXmKHH6_.js",
|
||||
"houseplan-assets/de-BRgmJptb.js",
|
||||
"houseplan-assets/editor-DCXyMNgY.js",
|
||||
"houseplan-assets/fr-B8hQ5YK4.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D_9nJ3h5.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-dzTrOQhv.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BLRnH1D6.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-_ZK20cr6.js",
|
||||
"houseplan-assets/iso-scene-render-BIRwzucU.js",
|
||||
"houseplan-assets/live-interaction-runtime-AJRZAUON.js",
|
||||
"houseplan-assets/pdf-export-B2sbsWvc.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CNpqraog.js",
|
||||
"houseplan-assets/zigbee-topology-Ba2URGlk.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-BZVl6ukN.js"
|
||||
],
|
||||
"lazyGzipBytes": 418510,
|
||||
"lazyGzipBytes": 418756,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-Caayxvt2.js",
|
||||
"houseplan-assets/editor-C5Zq-3aA.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-MsQg9zvn.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BNMtEwiN.js",
|
||||
"houseplan-assets/zigbee-topology-DlU7AXvw.js"
|
||||
"houseplan-assets/backdrop-pick-CXmKHH6_.js",
|
||||
"houseplan-assets/editor-DCXyMNgY.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D_9nJ3h5.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-dzTrOQhv.js",
|
||||
"houseplan-assets/zigbee-topology-Ba2URGlk.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 204784,
|
||||
"lazyEditorGzipBytes": 204934,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-Caayxvt2.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D2XH4RQC.js"
|
||||
"houseplan-assets/backdrop-pick-CXmKHH6_.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BLRnH1D6.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 13914,
|
||||
"lazyOnboardingGzipBytes": 13919,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-JVEEGD9u.js",
|
||||
"houseplan-assets/fr-B-ete5Dh.js"
|
||||
"houseplan-assets/de-BRgmJptb.js",
|
||||
"houseplan-assets/fr-B8hQ5YK4.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 54845,
|
||||
"lazyLocaleGzipBytes": 54925,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/iso-scene-render-ceJKJKhC.js"
|
||||
"houseplan-assets/iso-scene-render-BIRwzucU.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 13232,
|
||||
"lazyIsometricGzipBytes": 13236,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-MsQg9zvn.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-D_9nJ3h5.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10252,
|
||||
"lazyFurnitureArtGzipBytes": 10254,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-MsQg9zvn.js",
|
||||
"houseplan-assets/pdf-export-BAtsOfAV.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-D_9nJ3h5.js",
|
||||
"houseplan-assets/pdf-export-B2sbsWvc.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 120125,
|
||||
"lazyPdfGzipBytes": 120129,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-Caayxvt2.js",
|
||||
"sha256": "3a8a8a4b522eaae770f7b0cdd5612aaa542fd81e2fef1adcb58d21d9b093b360",
|
||||
"path": "houseplan-assets/backdrop-pick-CXmKHH6_.js",
|
||||
"sha256": "45a9c60eb50b3859a5a5f5330830dd5c72353b63d6f06cf8417712db248b2320",
|
||||
"rawBytes": 19956,
|
||||
"gzipBytes": 6881,
|
||||
"gzipBytes": 6880,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js"
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-JVEEGD9u.js",
|
||||
"sha256": "f300635f221656a36e591183395cc38c77c093e2347ce98ac0b0f324f7ec8306",
|
||||
"rawBytes": 91437,
|
||||
"gzipBytes": 27709,
|
||||
"path": "houseplan-assets/de-BRgmJptb.js",
|
||||
"sha256": "0023bc3edc741291b1d463fdc3f1a24006af13ca13932e3cd37f9e761b022fe9",
|
||||
"rawBytes": 91590,
|
||||
"gzipBytes": 27744,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-C5Zq-3aA.js",
|
||||
"sha256": "4878d5efac2222fdd3fda5e695588a8d5cfe463027397b2fc8499bd6e649c6a7",
|
||||
"path": "houseplan-assets/editor-DCXyMNgY.js",
|
||||
"sha256": "4dba6280fe0f491e4c8a0c349e94aa7031de545fe086f9c01f3ab376db2013b7",
|
||||
"rawBytes": 3831,
|
||||
"gzipBytes": 1583,
|
||||
"gzipBytes": 1584,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js"
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-B-ete5Dh.js",
|
||||
"sha256": "c4d9a2f7bf0fca73861727752c5cd9b41e8cda469685e32eb34dedc8ec0f790b",
|
||||
"rawBytes": 93701,
|
||||
"gzipBytes": 27136,
|
||||
"path": "houseplan-assets/fr-B8hQ5YK4.js",
|
||||
"sha256": "5c33cb26bb68392be61510c8eb0e06ae152e0bff506f493eddaaa2c44e19aadf",
|
||||
"rawBytes": 93884,
|
||||
"gzipBytes": 27181,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-MsQg9zvn.js",
|
||||
"sha256": "69da2271017aa401f35e87387fb06d384617ee78f0d534bbd28792f5c3cb33e8",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-D_9nJ3h5.js",
|
||||
"sha256": "aabb06ce9a989322682a7b485a7810036f390aac547aa89bbbb03c74a7e1bde7",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10252,
|
||||
"gzipBytes": 10254,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-BCGpvbDT.js",
|
||||
"sha256": "83f27e261a8a7a32463b67762c859e431d1468a32af7249627ec326f16696772",
|
||||
"rawBytes": 1031731,
|
||||
"gzipBytes": 289576,
|
||||
"path": "houseplan-assets/houseplan-card-Di_izZTU.js",
|
||||
"sha256": "634b25343fd2bf984b27e5a7ba7de1f24a7343b0909379bd16faa563f9499913",
|
||||
"rawBytes": 1032408,
|
||||
"gzipBytes": 289824,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-JVEEGD9u.js",
|
||||
"houseplan-assets/editor-C5Zq-3aA.js",
|
||||
"houseplan-assets/fr-B-ete5Dh.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-MsQg9zvn.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BNMtEwiN.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D2XH4RQC.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-D3IWAxB8.js",
|
||||
"houseplan-assets/iso-scene-render-ceJKJKhC.js",
|
||||
"houseplan-assets/live-interaction-runtime-CxW-k-p_.js",
|
||||
"houseplan-assets/pdf-export-BAtsOfAV.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-BcKBuVQ7.js"
|
||||
"houseplan-assets/de-BRgmJptb.js",
|
||||
"houseplan-assets/editor-DCXyMNgY.js",
|
||||
"houseplan-assets/fr-B8hQ5YK4.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D_9nJ3h5.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-dzTrOQhv.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BLRnH1D6.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-_ZK20cr6.js",
|
||||
"houseplan-assets/iso-scene-render-BIRwzucU.js",
|
||||
"houseplan-assets/live-interaction-runtime-AJRZAUON.js",
|
||||
"houseplan-assets/pdf-export-B2sbsWvc.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CNpqraog.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-BNMtEwiN.js",
|
||||
"sha256": "7a0814ddc88324ad5dcb87f43852bd1f92ed90e4bda658cab3a8cdfee3209c18",
|
||||
"rawBytes": 669271,
|
||||
"gzipBytes": 178643,
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-dzTrOQhv.js",
|
||||
"sha256": "f6556f260a8d8598a9f9667be241cce323d505281569ec6a5a3f01103edf9476",
|
||||
"rawBytes": 669985,
|
||||
"gzipBytes": 178790,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-Caayxvt2.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-MsQg9zvn.js",
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js",
|
||||
"houseplan-assets/zigbee-topology-DlU7AXvw.js"
|
||||
"houseplan-assets/backdrop-pick-CXmKHH6_.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-D_9nJ3h5.js",
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js",
|
||||
"houseplan-assets/zigbee-topology-Ba2URGlk.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-CWcX1vcd.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-BZVl6ukN.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-D2XH4RQC.js",
|
||||
"sha256": "6484dea33a514dff985b752d3f3ff87086a87ab2e46e79d29773d382d9fe4695",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-BLRnH1D6.js",
|
||||
"sha256": "a8eff518545ca4ff644e03bdc2861bcd7e79b28e1ff65642f28fb7ca216711c8",
|
||||
"rawBytes": 28287,
|
||||
"gzipBytes": 7033,
|
||||
"gzipBytes": 7039,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-Caayxvt2.js",
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js"
|
||||
"houseplan-assets/backdrop-pick-CXmKHH6_.js",
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-D3IWAxB8.js",
|
||||
"sha256": "1dd14e9ee7bb06dd0ca154b471e16f410abc14c0beb5e310266f71514e770f9b",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-_ZK20cr6.js",
|
||||
"sha256": "b9341d7245eca9bb514c73d2fda78b5023d9d964bddf605c7af842ac71af4451",
|
||||
"rawBytes": 10756,
|
||||
"gzipBytes": 3685,
|
||||
"gzipBytes": 3686,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js",
|
||||
"houseplan-assets/zigbee-topology-DlU7AXvw.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-CWcX1vcd.js"
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js",
|
||||
"houseplan-assets/zigbee-topology-Ba2URGlk.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-BZVl6ukN.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-ceJKJKhC.js",
|
||||
"sha256": "e7032d13f4479fa28d8b378c900a339577e74f5c377da9b080697e20e02f5903",
|
||||
"path": "houseplan-assets/iso-scene-render-BIRwzucU.js",
|
||||
"sha256": "a2b6ff57e2d3d0d275ffe392c71c1cdfac8f546c41abfe8a2c7be2911624c341",
|
||||
"rawBytes": 39206,
|
||||
"gzipBytes": 13232,
|
||||
"gzipBytes": 13236,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js"
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-CxW-k-p_.js",
|
||||
"sha256": "3b0f3ae94e957cb662f63abeb5b7fb95012da6654a0ad5a857cf7b1b6a4cb6ac",
|
||||
"path": "houseplan-assets/live-interaction-runtime-AJRZAUON.js",
|
||||
"sha256": "dff5f0f1ad7a5e92226f812e4948705e55b5556c802003ac1147339ea641e775",
|
||||
"rawBytes": 8216,
|
||||
"gzipBytes": 3209,
|
||||
"gzipBytes": 3210,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js"
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-BAtsOfAV.js",
|
||||
"sha256": "2e57254cc4a637a6ed689ee1de9af9f4dc60595489683b238ead4026f7e4d60b",
|
||||
"path": "houseplan-assets/pdf-export-B2sbsWvc.js",
|
||||
"sha256": "63d543a4fa25f03b26f255a4ea8c6096440fd3a0c3dc1b96e8402560fe9709b6",
|
||||
"rawBytes": 236244,
|
||||
"gzipBytes": 109873,
|
||||
"gzipBytes": 109875,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-MsQg9zvn.js",
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-D_9nJ3h5.js",
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-BAGJ8QwD.js",
|
||||
"sha256": "72d3ad8f8d61228dc255eed21ff157ad9c96ee8a35bd7b7b999f4090adb1925c",
|
||||
"path": "houseplan-assets/summary-panel-editor-BDoONUEa.js",
|
||||
"sha256": "caf18642431f5c391e03c7c06f1d45dbe71ffc06417c65cc24f726dff2840fd1",
|
||||
"rawBytes": 14824,
|
||||
"gzipBytes": 3401,
|
||||
"gzipBytes": 3400,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-BcKBuVQ7.js"
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CNpqraog.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-CXnAEe7_.js",
|
||||
"sha256": "c73f5de8717a8a7d5e7e0d0861fb9d007876b50c4c62f97b3c7f1739cd5bb38f",
|
||||
"path": "houseplan-assets/summary-panel-metrics-O-xxtEs5.js",
|
||||
"sha256": "e6eb617c543828e8d13193c442489da5b335be1706ac4285bf8dd6ac6861c300",
|
||||
"rawBytes": 2610,
|
||||
"gzipBytes": 1304,
|
||||
"gzipBytes": 1306,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js"
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-BcKBuVQ7.js",
|
||||
"sha256": "8609218f07a5ec5399a2ba61707a2854dfaa65e80b11dc628ddb3ece70d77f72",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-CNpqraog.js",
|
||||
"sha256": "d436e392b8472c75e3fce9f4f61bc38d8261b34c740cf796eab2f6916d191da1",
|
||||
"rawBytes": 73366,
|
||||
"gzipBytes": 20089,
|
||||
"gzipBytes": 20088,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js"
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-BAGJ8QwD.js",
|
||||
"houseplan-assets/summary-panel-metrics-CXnAEe7_.js"
|
||||
"houseplan-assets/summary-panel-editor-BDoONUEa.js",
|
||||
"houseplan-assets/summary-panel-metrics-O-xxtEs5.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-DlU7AXvw.js",
|
||||
"sha256": "f7f21945cb650b57fa6469a7205aa687415b208f9649e2e8bae9dd27aa6cf4e6",
|
||||
"path": "houseplan-assets/zigbee-topology-Ba2URGlk.js",
|
||||
"sha256": "c22937699ac98c72b3fa9e8d94555cbaf108fcb6354ba1660c71d06504e0b0d0",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7425,
|
||||
"gzipBytes": 7426,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js"
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-CWcX1vcd.js",
|
||||
"sha256": "7ae2a9b1aac6ea4ee128341cce087684b546efd2788b97fa6941138ddb702f9f",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-BZVl6ukN.js",
|
||||
"sha256": "9495447f3dfda1bbc1a4612742a0a42aeadca02949f9e5ff87e8d5b8ae18e146",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1760,
|
||||
"gzipBytes": 1763,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js",
|
||||
"houseplan-assets/zigbee-topology-DlU7AXvw.js"
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js",
|
||||
"houseplan-assets/zigbee-topology-Ba2URGlk.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "642174a115a5be423b55f552e351f4445e58f744c22c4eb1378fc376ef16d65b",
|
||||
"sha256": "f31ba79b59bd0c95d9696f77702c5cff2d0900b1962547c42c7e7f7f807b0e10",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 803,
|
||||
"gzipBytes": 805,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js"
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "8383bd59c693f7f9cc4b2aee4886b6a9fb90a715d91630e6473ce3aeae09216b",
|
||||
"sha256": "174775f68968418e501fdbe42a83541d6003dbb0e58aa223d7f419936e88c8cf",
|
||||
"rawBytes": 6165,
|
||||
"gzipBytes": 2325,
|
||||
"gzipBytes": 2327,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-BCGpvbDT.js"
|
||||
"houseplan-assets/houseplan-card-Di_izZTU.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+5
-5
@@ -1,14 +1,14 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="0aa07f15a35e57da89774909bc60ec4f962331aec1df3963cc08462a0c3abf5e";import{q as e,l as o,v as t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,E as r,c}from"./houseplan-card-BCGpvbDT.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__="530ccf77162ec68ef4b53a77b8f84ff0fffe489fa26b18459248ce23d527db33";import{q as e,l as o,v as t,e4 as s,A as a,e5 as i,e6 as l,e7 as n,E as r,c}from"./houseplan-card-Di_izZTU.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);
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+80
-80
File diff suppressed because one or more lines are too long
+145
-137
File diff suppressed because one or more lines are too long
+30
-30
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="0aa07f15a35e57da89774909bc60ec4f962331aec1df3963cc08462a0c3abf5e";import{c as a,A as e}from"./houseplan-card-BCGpvbDT.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-BcKBuVQ7.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__="530ccf77162ec68ef4b53a77b8f84ff0fffe489fa26b18459248ce23d527db33";import{c as a,A as e}from"./houseplan-card-Di_izZTU.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-CNpqraog.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"
|
||||
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="0aa07f15a35e57da89774909bc60ec4f962331aec1df3963cc08462a0c3abf5e";import{e9 as e,P as t,a5 as n,M as i,aq as r,N as o,br as a,bq as s,a4 as c,a3 as l,aA as u,ea as d,eb as f,bt as m,ec as g}from"./houseplan-card-BCGpvbDT.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 r=String(i.binding||"").indexOf(":");if(r<1)continue;const o=i.binding.slice(0,r),a=i.binding.slice(r+1),s="device"===o?e.registry.devices?.[a]:null,c="entity"===o?e.registry.entities?.[a]:null,l="device"===o?a:c?.device_id,u="device"===o?s?.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"===o&&n.liveEntities.has(a))&&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,r,o);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,r,o)}}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 s=t(e);if(!s)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,r,o,g.roomGeom,g.multiWallNodes)||s;v=y(v,a(c,m.physicalBodies)),yield}const _=m.cellCm/r;d+=s(v)*_*_/1e4}return d}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let r=i.next();for(;!r.done;)r=i.next();return r.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};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="530ccf77162ec68ef4b53a77b8f84ff0fffe489fa26b18459248ce23d527db33";import{ea as e,P as t,a5 as n,M as i,aq as r,N as o,bs as s,br as a,a4 as c,a3 as l,aA as u,eb as d,ec as f,bu as m,ed as g}from"./houseplan-card-Di_izZTU.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 r=String(i.binding||"").indexOf(":");if(r<1)continue;const o=i.binding.slice(0,r),s=i.binding.slice(r+1),a="device"===o?e.registry.devices?.[s]:null,c="entity"===o?e.registry.entities?.[s]:null,l="device"===o?s:c?.device_id,u="device"===o?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"===o&&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,r,o);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,r,o)}}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,r,o,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/r;d+=a(v)*_*_/1e4}return d}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let r=i.next();for(;!r.done;)r=i.next();return r.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};
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="0aa07f15a35e57da89774909bc60ec4f962331aec1df3963cc08462a0c3abf5e";import{n as t,b as n}from"./zigbee-topology-DlU7AXvw.js";import{F as e}from"./houseplan-card-BCGpvbDT.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 m(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 g(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,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=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&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(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 m(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,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="530ccf77162ec68ef4b53a77b8f84ff0fffe489fa26b18459248ce23d527db33";import{n as t,b as n}from"./zigbee-topology-Ba2URGlk.js";import{F as e}from"./houseplan-card-Di_izZTU.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 m(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 g(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,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=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&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(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 m(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,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="0aa07f15a35e57da89774909bc60ec4f962331aec1df3963cc08462a0c3abf5e";try{await import("./houseplan-assets/houseplan-card-BCGpvbDT.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__="530ccf77162ec68ef4b53a77b8f84ff0fffe489fa26b18459248ce23d527db33";try{await import("./houseplan-assets/houseplan-card-Di_izZTU.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)}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -149,6 +149,9 @@ def _global_settings(value: object) -> dict[str, Any]:
|
||||
out = _copy_keys(value, ("glow_radius_cm", "bg_color", "north_deg", "bg_mode", "sun_rays"))
|
||||
if not isinstance(value, dict):
|
||||
return out
|
||||
sun_ray_origin = value.get("sun_ray_origin")
|
||||
if sun_ray_origin in ("inner", "outer"):
|
||||
out["sun_ray_origin"] = sun_ray_origin
|
||||
show_room_tooltip = value.get("show_room_tooltip")
|
||||
if isinstance(show_room_tooltip, bool):
|
||||
out["show_room_tooltip"] = show_room_tooltip
|
||||
|
||||
@@ -1339,6 +1339,7 @@ def _north_deg(value):
|
||||
|
||||
|
||||
_BG_MODE = vol.In(["static", "daynight"])
|
||||
_SUN_RAY_ORIGIN = vol.In(["inner", "outer"])
|
||||
|
||||
SPACE_DISPLAY_SCHEMA = vol.Schema(
|
||||
{
|
||||
@@ -2195,6 +2196,7 @@ CONFIG_SCHEMA = vol.All(
|
||||
vol.Optional("north_deg"): _north_deg,
|
||||
vol.Optional("bg_mode"): _BG_MODE,
|
||||
vol.Optional("sun_rays"): bool,
|
||||
vol.Optional("sun_ray_origin"): _SUN_RAY_ORIGIN,
|
||||
vol.Optional("show_room_tooltip"): bool,
|
||||
vol.Optional("summary_panel"): SUMMARY_PANEL_WIRE_SCHEMA,
|
||||
vol.Optional("radar"): vol.Schema({}, extra=vol.ALLOW_EXTRA),
|
||||
|
||||
Reference in New Issue
Block a user