zwave-js-ui
Version:
Z-Wave Control Panel and MQTT Gateway
2 lines (1 loc) • 1.17 kB
JavaScript
import{m as t,n as i,u as r}from"./index-CtTdmJsx.js";const a={data:()=>({requiredKeys:["S2_Unauthenticated","S2_Authenticated","S2_AccessControl","S0_Legacy"],requiredKeysLongRange:["S2_Authenticated","S2_AccessControl"]}),computed:{...t(r,["zwave"]),missingKeys(){const n=this.zwave.securityKeys||{},e=[];for(const s of this.requiredKeys)(!n[s]||n[s].length!==32)&&e.push(s);return e},missingZwlrKeys(){const n=this.zwave.securityKeysLongRange||{},e=[];for(const s of this.requiredKeysLongRange)(!n[s]||n[s].length!==32)&&e.push(s);return e}}};var o=function(){var e=this,s=e._self._c;return e.missingKeys.length>0||e.missingZwlrKeys.length>0?s("v-alert",{attrs:{"max-width":"600px",dense:"",border:"left",type:"warning"}},[e.missingKeys.length>0?s("p",[e._v(" Some Z-Wave security keys are missing: "),s("strong",[e._v(e._s(e.missingKeys.join(", ")))])]):e._e(),e.missingZwlrKeys.length>0?s("p",[e._v(" Some Z-Wave Long Range security keys are missing: "),s("strong",[e._v(e._s(e.missingZwlrKeys.join(", ")))])]):e._e(),s("span",[e._v("Please make sure to set the keys in Settings.")])]):e._e()},g=[],_=i(a,o,g,!1,null,null);const y=_.exports;export{y as default};