chore: пересобрать бандл после ребейза на dev

User-Visible: no
Issue: #459
Baseline-Reviewed: https://github.com/Matysh/houseplan-card/actions/runs/33953825960
This commit is contained in:
Codex
2026-09-05 11:13:43 +03:00
parent ef5bfa4bcd
commit 33f16dd3cc
28 changed files with 328 additions and 314 deletions
@@ -1,182 +1,182 @@
{
"schema": 1,
"fingerprint": "b2baa797361b836964adc96221eabf4f8e9123b02ae55fe32b18f4d4662a8e9c",
"fingerprint": "55f15b821c7086d2d1f7b16dbc290d54121aae8a0399897d252e46e1f717b2d1",
"entry": "houseplan-card.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-BPjCRsTo.js",
"houseplan-assets/houseplan-card-bl8WhyFc.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 297496,
"lazyFiles": [
"houseplan-assets/backdrop-pick-Duf1Bdh6.js",
"houseplan-assets/de-CFYVEfKY.js",
"houseplan-assets/editor-QjNx89iq.js",
"houseplan-assets/fr-CGt9f7iD.js",
"houseplan-assets/houseplan-editor-runtime-CZxl3GH6.js",
"houseplan-assets/houseplan-onboarding-runtime-8y08OhqH.js",
"houseplan-assets/hp-zigbee-topology-overlay-CAtxncsA.js",
"houseplan-assets/live-interaction-runtime-CrPD9yL6.js",
"houseplan-assets/zigbee-topology-OesQErJ9.js",
"houseplan-assets/zigbee-topology-runtime-D1hCsInw.js"
"houseplan-assets/backdrop-pick-Bx8Wbqtd.js",
"houseplan-assets/de-DA2iaksI.js",
"houseplan-assets/editor-SYPHCziy.js",
"houseplan-assets/fr-CDr9xD9w.js",
"houseplan-assets/houseplan-editor-runtime-DkbTjh7i.js",
"houseplan-assets/houseplan-onboarding-runtime-BCwiKHSu.js",
"houseplan-assets/hp-zigbee-topology-overlay-Ck5d7CEt.js",
"houseplan-assets/live-interaction-runtime-DOFtpMsL.js",
"houseplan-assets/zigbee-topology-DM3CehUC.js",
"houseplan-assets/zigbee-topology-runtime-dzqvHl6K.js"
],
"lazyGzipBytes": 246064,
"lazyGzipBytes": 247833,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-Duf1Bdh6.js",
"houseplan-assets/editor-QjNx89iq.js",
"houseplan-assets/houseplan-editor-runtime-CZxl3GH6.js",
"houseplan-assets/zigbee-topology-OesQErJ9.js"
"houseplan-assets/backdrop-pick-Bx8Wbqtd.js",
"houseplan-assets/editor-SYPHCziy.js",
"houseplan-assets/houseplan-editor-runtime-DkbTjh7i.js",
"houseplan-assets/zigbee-topology-DM3CehUC.js"
],
"lazyEditorGzipBytes": 182047,
"lazyEditorGzipBytes": 183806,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-Duf1Bdh6.js",
"houseplan-assets/houseplan-onboarding-runtime-8y08OhqH.js"
"houseplan-assets/backdrop-pick-Bx8Wbqtd.js",
"houseplan-assets/houseplan-onboarding-runtime-BCwiKHSu.js"
],
"lazyOnboardingGzipBytes": 14312,
"lazyOnboardingGzipBytes": 14315,
"lazyLocaleFiles": [
"houseplan-assets/de-CFYVEfKY.js",
"houseplan-assets/fr-CGt9f7iD.js"
"houseplan-assets/de-DA2iaksI.js",
"houseplan-assets/fr-CDr9xD9w.js"
],
"lazyLocaleGzipBytes": 49936,
"lazyLocaleGzipBytes": 49943,
"files": [
{
"path": "houseplan-assets/backdrop-pick-Duf1Bdh6.js",
"sha256": "ff2459214cc7acc882b60728643b19e44e74c4e79d48b782adf92606dbb40615",
"path": "houseplan-assets/backdrop-pick-Bx8Wbqtd.js",
"sha256": "5d7733f874ba4237cdb80efd6ab67d2114b11434008ff114db58ffdb4c4b2b4d",
"rawBytes": 21592,
"gzipBytes": 7356,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-CFYVEfKY.js",
"sha256": "c1212390cf12249c112bcbfcf0cf06e71e4dc2f6363f0603cf70ef723b10e105",
"path": "houseplan-assets/de-DA2iaksI.js",
"sha256": "80c50906e30e4602ef6aca02e8324ab80d8a819339b93bb305c0cad5dff27928",
"rawBytes": 83907,
"gzipBytes": 25243,
"gzipBytes": 25246,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-QjNx89iq.js",
"sha256": "946aec7527760fdb7639dba4fe12dcc2d537c0dfba326223472f7005f5dd670f",
"path": "houseplan-assets/editor-SYPHCziy.js",
"sha256": "3fb7e84aaead43e8c867e4754aa49acfaf5f988951e67ebd17cb30dc300eacff",
"rawBytes": 3831,
"gzipBytes": 1582,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-CGt9f7iD.js",
"sha256": "6ce0f731f24895065b1913df18eb74fa7723f8a07b32b8b313f4088aea0e1137",
"path": "houseplan-assets/fr-CDr9xD9w.js",
"sha256": "971d9a485e2b73f09e3b544044f90fbcf237fab3c08c962080d03df8624e24ce",
"rawBytes": 85967,
"gzipBytes": 24693,
"gzipBytes": 24697,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-BPjCRsTo.js",
"sha256": "18163614454db07163e74e89d6114ddceb1404a532cca505b2a3c5422d1f4d78",
"path": "houseplan-assets/houseplan-card-bl8WhyFc.js",
"sha256": "51f8c9ea339569f6eecefe3f54fdb644ecddbef4ef862c506740163aa5cbd4a0",
"rawBytes": 1058176,
"gzipBytes": 296701,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-CFYVEfKY.js",
"houseplan-assets/editor-QjNx89iq.js",
"houseplan-assets/fr-CGt9f7iD.js",
"houseplan-assets/houseplan-editor-runtime-CZxl3GH6.js",
"houseplan-assets/houseplan-onboarding-runtime-8y08OhqH.js",
"houseplan-assets/hp-zigbee-topology-overlay-CAtxncsA.js",
"houseplan-assets/live-interaction-runtime-CrPD9yL6.js"
"houseplan-assets/de-DA2iaksI.js",
"houseplan-assets/editor-SYPHCziy.js",
"houseplan-assets/fr-CDr9xD9w.js",
"houseplan-assets/houseplan-editor-runtime-DkbTjh7i.js",
"houseplan-assets/houseplan-onboarding-runtime-BCwiKHSu.js",
"houseplan-assets/hp-zigbee-topology-overlay-Ck5d7CEt.js",
"houseplan-assets/live-interaction-runtime-DOFtpMsL.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-CZxl3GH6.js",
"sha256": "723a2e68ba55c84805c1150b8edb4da2154a3ec59a31a7e0f61a45ae6fca1004",
"rawBytes": 630790,
"gzipBytes": 167370,
"path": "houseplan-assets/houseplan-editor-runtime-DkbTjh7i.js",
"sha256": "f2750ae81b2a32eb05bd35fc8ab3bfa610d78fa6285e9b32197a93ce7eddd89f",
"rawBytes": 631052,
"gzipBytes": 167443,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-Duf1Bdh6.js",
"houseplan-assets/houseplan-card-BPjCRsTo.js",
"houseplan-assets/zigbee-topology-OesQErJ9.js"
"houseplan-assets/backdrop-pick-Bx8Wbqtd.js",
"houseplan-assets/houseplan-card-bl8WhyFc.js",
"houseplan-assets/zigbee-topology-DM3CehUC.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-D1hCsInw.js"
"houseplan-assets/zigbee-topology-runtime-dzqvHl6K.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-8y08OhqH.js",
"sha256": "3cc7f96f2f1f2f7bc599eddc08259ead9a1988f6ee430e6b55e2ab29a4567fcd",
"path": "houseplan-assets/houseplan-onboarding-runtime-BCwiKHSu.js",
"sha256": "f72e38d21a23609a34dc02cb6197e0a5cab03254fd5c6f0540fa582fdb8dc56b",
"rawBytes": 28088,
"gzipBytes": 6956,
"gzipBytes": 6959,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-Duf1Bdh6.js",
"houseplan-assets/houseplan-card-BPjCRsTo.js"
"houseplan-assets/backdrop-pick-Bx8Wbqtd.js",
"houseplan-assets/houseplan-card-bl8WhyFc.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-CAtxncsA.js",
"sha256": "9d4a14157ef14fc6bdf3fdb9f5c631a59b8badea973fb492b3084a1e0cfbcf7f",
"path": "houseplan-assets/hp-zigbee-topology-overlay-Ck5d7CEt.js",
"sha256": "425c2b05175b2aa86d6fa281f85d216a51be4b1fbd3d2ee91156709c9b689bbb",
"rawBytes": 8626,
"gzipBytes": 3235,
"gzipBytes": 3236,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js",
"houseplan-assets/zigbee-topology-OesQErJ9.js",
"houseplan-assets/zigbee-topology-runtime-D1hCsInw.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js",
"houseplan-assets/zigbee-topology-DM3CehUC.js",
"houseplan-assets/zigbee-topology-runtime-dzqvHl6K.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-CrPD9yL6.js",
"sha256": "eb857c35a83da4fbbec97eb73cfb512274735db10e997ff61828ad6aa4c7ed7e",
"path": "houseplan-assets/live-interaction-runtime-DOFtpMsL.js",
"sha256": "4d4c634e9a2494f1830e83ef24947e551ddc9aa0a6cf9fc95bdec7584715a20b",
"rawBytes": 5196,
"gzipBytes": 2127,
"gzipBytes": 2126,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-OesQErJ9.js",
"sha256": "b22a1723c06f787f7c8512ac031c98eaf1a76ce3ef0182de48a65366b4fd7b4b",
"rawBytes": 15135,
"gzipBytes": 5739,
"path": "houseplan-assets/zigbee-topology-DM3CehUC.js",
"sha256": "ec2feed9e608719f48086c0ce577a88591ceaf63190f53169389b0cb5345d825",
"rawBytes": 18961,
"gzipBytes": 7425,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-D1hCsInw.js",
"sha256": "67a225b4f8267dd2d3233fa5071448b233aa900405b2d3dfbce1a570bc04881f",
"path": "houseplan-assets/zigbee-topology-runtime-dzqvHl6K.js",
"sha256": "95e9d3960b3199ac3b686265449b6fa4c27253a4631ba66826716a4464e1312e",
"rawBytes": 3941,
"gzipBytes": 1763,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js",
"houseplan-assets/zigbee-topology-OesQErJ9.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js",
"houseplan-assets/zigbee-topology-DM3CehUC.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "02ece7d8bc4d5ff924159e80dbed70959bd7b39bc55932f3599c50f01dad32f9",
"sha256": "244f5722538f5419860ec757832f44161714476e58bf4da5bbe82747bed28377",
"rawBytes": 1183,
"gzipBytes": 795,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js"
],
"dynamicImports": []
}
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b2baa797361b836964adc96221eabf4f8e9123b02ae55fe32b18f4d4662a8e9c";import{v as e,l as o,z as t,dt as s,A as a,du as i,dv as l,dw as n,E as r,c}from"./houseplan-card-BPjCRsTo.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__="55f15b821c7086d2d1f7b16dbc290d54121aae8a0399897d252e46e1f717b2d1";import{v as e,l as o,z as t,dt as s,A as a,du as i,dv as l,dw as n,E as r,c}from"./houseplan-card-bl8WhyFc.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
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
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 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b2baa797361b836964adc96221eabf4f8e9123b02ae55fe32b18f4d4662a8e9c";import{n as t,b as n}from"./zigbee-topology-OesQErJ9.js";import{I as e}from"./houseplan-card-BPjCRsTo.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 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(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,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=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 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&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),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{f as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="55f15b821c7086d2d1f7b16dbc290d54121aae8a0399897d252e46e1f717b2d1";import{n as t,b as n}from"./zigbee-topology-DM3CehUC.js";import{I as e}from"./houseplan-card-bl8WhyFc.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 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(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,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=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 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&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),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{f as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b2baa797361b836964adc96221eabf4f8e9123b02ae55fe32b18f4d4662a8e9c";try{await import("./houseplan-assets/houseplan-card-BPjCRsTo.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 entry: the main chunk is unavailable",e)}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="55f15b821c7086d2d1f7b16dbc290d54121aae8a0399897d252e46e1f717b2d1";try{await import("./houseplan-assets/houseplan-card-bl8WhyFc.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 entry: the main chunk is unavailable",e)}
+79 -79
View File
@@ -1,182 +1,182 @@
{
"schema": 1,
"fingerprint": "b2baa797361b836964adc96221eabf4f8e9123b02ae55fe32b18f4d4662a8e9c",
"fingerprint": "55f15b821c7086d2d1f7b16dbc290d54121aae8a0399897d252e46e1f717b2d1",
"entry": "houseplan-card.js",
"initialViewFiles": [
"houseplan-assets/houseplan-card-BPjCRsTo.js",
"houseplan-assets/houseplan-card-bl8WhyFc.js",
"houseplan-card.js"
],
"initialViewGzipBytes": 297496,
"lazyFiles": [
"houseplan-assets/backdrop-pick-Duf1Bdh6.js",
"houseplan-assets/de-CFYVEfKY.js",
"houseplan-assets/editor-QjNx89iq.js",
"houseplan-assets/fr-CGt9f7iD.js",
"houseplan-assets/houseplan-editor-runtime-CZxl3GH6.js",
"houseplan-assets/houseplan-onboarding-runtime-8y08OhqH.js",
"houseplan-assets/hp-zigbee-topology-overlay-CAtxncsA.js",
"houseplan-assets/live-interaction-runtime-CrPD9yL6.js",
"houseplan-assets/zigbee-topology-OesQErJ9.js",
"houseplan-assets/zigbee-topology-runtime-D1hCsInw.js"
"houseplan-assets/backdrop-pick-Bx8Wbqtd.js",
"houseplan-assets/de-DA2iaksI.js",
"houseplan-assets/editor-SYPHCziy.js",
"houseplan-assets/fr-CDr9xD9w.js",
"houseplan-assets/houseplan-editor-runtime-DkbTjh7i.js",
"houseplan-assets/houseplan-onboarding-runtime-BCwiKHSu.js",
"houseplan-assets/hp-zigbee-topology-overlay-Ck5d7CEt.js",
"houseplan-assets/live-interaction-runtime-DOFtpMsL.js",
"houseplan-assets/zigbee-topology-DM3CehUC.js",
"houseplan-assets/zigbee-topology-runtime-dzqvHl6K.js"
],
"lazyGzipBytes": 246064,
"lazyGzipBytes": 247833,
"lazyEditorFiles": [
"houseplan-assets/backdrop-pick-Duf1Bdh6.js",
"houseplan-assets/editor-QjNx89iq.js",
"houseplan-assets/houseplan-editor-runtime-CZxl3GH6.js",
"houseplan-assets/zigbee-topology-OesQErJ9.js"
"houseplan-assets/backdrop-pick-Bx8Wbqtd.js",
"houseplan-assets/editor-SYPHCziy.js",
"houseplan-assets/houseplan-editor-runtime-DkbTjh7i.js",
"houseplan-assets/zigbee-topology-DM3CehUC.js"
],
"lazyEditorGzipBytes": 182047,
"lazyEditorGzipBytes": 183806,
"lazyOnboardingFiles": [
"houseplan-assets/backdrop-pick-Duf1Bdh6.js",
"houseplan-assets/houseplan-onboarding-runtime-8y08OhqH.js"
"houseplan-assets/backdrop-pick-Bx8Wbqtd.js",
"houseplan-assets/houseplan-onboarding-runtime-BCwiKHSu.js"
],
"lazyOnboardingGzipBytes": 14312,
"lazyOnboardingGzipBytes": 14315,
"lazyLocaleFiles": [
"houseplan-assets/de-CFYVEfKY.js",
"houseplan-assets/fr-CGt9f7iD.js"
"houseplan-assets/de-DA2iaksI.js",
"houseplan-assets/fr-CDr9xD9w.js"
],
"lazyLocaleGzipBytes": 49936,
"lazyLocaleGzipBytes": 49943,
"files": [
{
"path": "houseplan-assets/backdrop-pick-Duf1Bdh6.js",
"sha256": "ff2459214cc7acc882b60728643b19e44e74c4e79d48b782adf92606dbb40615",
"path": "houseplan-assets/backdrop-pick-Bx8Wbqtd.js",
"sha256": "5d7733f874ba4237cdb80efd6ab67d2114b11434008ff114db58ffdb4c4b2b4d",
"rawBytes": 21592,
"gzipBytes": 7356,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/de-CFYVEfKY.js",
"sha256": "c1212390cf12249c112bcbfcf0cf06e71e4dc2f6363f0603cf70ef723b10e105",
"path": "houseplan-assets/de-DA2iaksI.js",
"sha256": "80c50906e30e4602ef6aca02e8324ab80d8a819339b93bb305c0cad5dff27928",
"rawBytes": 83907,
"gzipBytes": 25243,
"gzipBytes": 25246,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/editor-QjNx89iq.js",
"sha256": "946aec7527760fdb7639dba4fe12dcc2d537c0dfba326223472f7005f5dd670f",
"path": "houseplan-assets/editor-SYPHCziy.js",
"sha256": "3fb7e84aaead43e8c867e4754aa49acfaf5f988951e67ebd17cb30dc300eacff",
"rawBytes": 3831,
"gzipBytes": 1582,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/fr-CGt9f7iD.js",
"sha256": "6ce0f731f24895065b1913df18eb74fa7723f8a07b32b8b313f4088aea0e1137",
"path": "houseplan-assets/fr-CDr9xD9w.js",
"sha256": "971d9a485e2b73f09e3b544044f90fbcf237fab3c08c962080d03df8624e24ce",
"rawBytes": 85967,
"gzipBytes": 24693,
"gzipBytes": 24697,
"isEntry": false,
"imports": [],
"dynamicImports": []
},
{
"path": "houseplan-assets/houseplan-card-BPjCRsTo.js",
"sha256": "18163614454db07163e74e89d6114ddceb1404a532cca505b2a3c5422d1f4d78",
"path": "houseplan-assets/houseplan-card-bl8WhyFc.js",
"sha256": "51f8c9ea339569f6eecefe3f54fdb644ecddbef4ef862c506740163aa5cbd4a0",
"rawBytes": 1058176,
"gzipBytes": 296701,
"isEntry": false,
"imports": [],
"dynamicImports": [
"houseplan-assets/de-CFYVEfKY.js",
"houseplan-assets/editor-QjNx89iq.js",
"houseplan-assets/fr-CGt9f7iD.js",
"houseplan-assets/houseplan-editor-runtime-CZxl3GH6.js",
"houseplan-assets/houseplan-onboarding-runtime-8y08OhqH.js",
"houseplan-assets/hp-zigbee-topology-overlay-CAtxncsA.js",
"houseplan-assets/live-interaction-runtime-CrPD9yL6.js"
"houseplan-assets/de-DA2iaksI.js",
"houseplan-assets/editor-SYPHCziy.js",
"houseplan-assets/fr-CDr9xD9w.js",
"houseplan-assets/houseplan-editor-runtime-DkbTjh7i.js",
"houseplan-assets/houseplan-onboarding-runtime-BCwiKHSu.js",
"houseplan-assets/hp-zigbee-topology-overlay-Ck5d7CEt.js",
"houseplan-assets/live-interaction-runtime-DOFtpMsL.js"
]
},
{
"path": "houseplan-assets/houseplan-editor-runtime-CZxl3GH6.js",
"sha256": "723a2e68ba55c84805c1150b8edb4da2154a3ec59a31a7e0f61a45ae6fca1004",
"rawBytes": 630790,
"gzipBytes": 167370,
"path": "houseplan-assets/houseplan-editor-runtime-DkbTjh7i.js",
"sha256": "f2750ae81b2a32eb05bd35fc8ab3bfa610d78fa6285e9b32197a93ce7eddd89f",
"rawBytes": 631052,
"gzipBytes": 167443,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-Duf1Bdh6.js",
"houseplan-assets/houseplan-card-BPjCRsTo.js",
"houseplan-assets/zigbee-topology-OesQErJ9.js"
"houseplan-assets/backdrop-pick-Bx8Wbqtd.js",
"houseplan-assets/houseplan-card-bl8WhyFc.js",
"houseplan-assets/zigbee-topology-DM3CehUC.js"
],
"dynamicImports": [
"houseplan-assets/zigbee-topology-runtime-D1hCsInw.js"
"houseplan-assets/zigbee-topology-runtime-dzqvHl6K.js"
]
},
{
"path": "houseplan-assets/houseplan-onboarding-runtime-8y08OhqH.js",
"sha256": "3cc7f96f2f1f2f7bc599eddc08259ead9a1988f6ee430e6b55e2ab29a4567fcd",
"path": "houseplan-assets/houseplan-onboarding-runtime-BCwiKHSu.js",
"sha256": "f72e38d21a23609a34dc02cb6197e0a5cab03254fd5c6f0540fa582fdb8dc56b",
"rawBytes": 28088,
"gzipBytes": 6956,
"gzipBytes": 6959,
"isEntry": false,
"imports": [
"houseplan-assets/backdrop-pick-Duf1Bdh6.js",
"houseplan-assets/houseplan-card-BPjCRsTo.js"
"houseplan-assets/backdrop-pick-Bx8Wbqtd.js",
"houseplan-assets/houseplan-card-bl8WhyFc.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/hp-zigbee-topology-overlay-CAtxncsA.js",
"sha256": "9d4a14157ef14fc6bdf3fdb9f5c631a59b8badea973fb492b3084a1e0cfbcf7f",
"path": "houseplan-assets/hp-zigbee-topology-overlay-Ck5d7CEt.js",
"sha256": "425c2b05175b2aa86d6fa281f85d216a51be4b1fbd3d2ee91156709c9b689bbb",
"rawBytes": 8626,
"gzipBytes": 3235,
"gzipBytes": 3236,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js",
"houseplan-assets/zigbee-topology-OesQErJ9.js",
"houseplan-assets/zigbee-topology-runtime-D1hCsInw.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js",
"houseplan-assets/zigbee-topology-DM3CehUC.js",
"houseplan-assets/zigbee-topology-runtime-dzqvHl6K.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/live-interaction-runtime-CrPD9yL6.js",
"sha256": "eb857c35a83da4fbbec97eb73cfb512274735db10e997ff61828ad6aa4c7ed7e",
"path": "houseplan-assets/live-interaction-runtime-DOFtpMsL.js",
"sha256": "4d4c634e9a2494f1830e83ef24947e551ddc9aa0a6cf9fc95bdec7584715a20b",
"rawBytes": 5196,
"gzipBytes": 2127,
"gzipBytes": 2126,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-OesQErJ9.js",
"sha256": "b22a1723c06f787f7c8512ac031c98eaf1a76ce3ef0182de48a65366b4fd7b4b",
"rawBytes": 15135,
"gzipBytes": 5739,
"path": "houseplan-assets/zigbee-topology-DM3CehUC.js",
"sha256": "ec2feed9e608719f48086c0ce577a88591ceaf63190f53169389b0cb5345d825",
"rawBytes": 18961,
"gzipBytes": 7425,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js"
],
"dynamicImports": []
},
{
"path": "houseplan-assets/zigbee-topology-runtime-D1hCsInw.js",
"sha256": "67a225b4f8267dd2d3233fa5071448b233aa900405b2d3dfbce1a570bc04881f",
"path": "houseplan-assets/zigbee-topology-runtime-dzqvHl6K.js",
"sha256": "95e9d3960b3199ac3b686265449b6fa4c27253a4631ba66826716a4464e1312e",
"rawBytes": 3941,
"gzipBytes": 1763,
"isEntry": false,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js",
"houseplan-assets/zigbee-topology-OesQErJ9.js"
"houseplan-assets/houseplan-card-bl8WhyFc.js",
"houseplan-assets/zigbee-topology-DM3CehUC.js"
],
"dynamicImports": []
},
{
"path": "houseplan-card.js",
"sha256": "02ece7d8bc4d5ff924159e80dbed70959bd7b39bc55932f3599c50f01dad32f9",
"sha256": "244f5722538f5419860ec757832f44161714476e58bf4da5bbe82747bed28377",
"rawBytes": 1183,
"gzipBytes": 795,
"isEntry": true,
"imports": [
"houseplan-assets/houseplan-card-BPjCRsTo.js"
"houseplan-assets/houseplan-card-bl8WhyFc.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,4 +1,4 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b2baa797361b836964adc96221eabf4f8e9123b02ae55fe32b18f4d4662a8e9c";import{v as e,l as o,z as t,dt as s,A as a,du as i,dv as l,dw as n,E as r,c}from"./houseplan-card-BPjCRsTo.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__="55f15b821c7086d2d1f7b16dbc290d54121aae8a0399897d252e46e1f717b2d1";import{v as e,l as o,z as t,dt as s,A as a,du as i,dv as l,dw as n,E as r,c}from"./houseplan-card-bl8WhyFc.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
.hass=${this.hass}
.data=${this._formData}
.schema=${e}
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
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b2baa797361b836964adc96221eabf4f8e9123b02ae55fe32b18f4d4662a8e9c";import{n as t,b as n}from"./zigbee-topology-OesQErJ9.js";import{I as e}from"./houseplan-card-BPjCRsTo.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 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(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,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=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 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&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),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{f as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="55f15b821c7086d2d1f7b16dbc290d54121aae8a0399897d252e46e1f717b2d1";import{n as t,b as n}from"./zigbee-topology-DM3CehUC.js";import{I as e}from"./houseplan-card-bl8WhyFc.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 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(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,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=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 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&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),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{f as readZhaTopology,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
+1 -1
View File
@@ -1 +1 @@
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b2baa797361b836964adc96221eabf4f8e9123b02ae55fe32b18f4d4662a8e9c";try{await import("./houseplan-assets/houseplan-card-BPjCRsTo.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 entry: the main chunk is unavailable",e)}
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="55f15b821c7086d2d1f7b16dbc290d54121aae8a0399897d252e46e1f717b2d1";try{await import("./houseplan-assets/houseplan-card-bl8WhyFc.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 entry: the main chunk is unavailable",e)}