diff --git a/custom_components/alarmo/const.py b/custom_components/alarmo/const.py index 1bed2bc..9be6b6f 100755 --- a/custom_components/alarmo/const.py +++ b/custom_components/alarmo/const.py @@ -15,7 +15,7 @@ ) from homeassistant.helpers import config_validation as cv -VERSION = "1.10.6" +VERSION = "1.10.7" NAME = "Alarmo" MANUFACTURER = "@nielsfaber" diff --git a/custom_components/alarmo/frontend/dist/alarm-panel.js b/custom_components/alarmo/frontend/dist/alarm-panel.js index 39872c2..cfb227a 100755 --- a/custom_components/alarmo/frontend/dist/alarm-panel.js +++ b/custom_components/alarmo/frontend/dist/alarm-panel.js @@ -2446,7 +2446,7 @@ class ms extends Xn{constructor(e){if(super(e),this.et=V,e.type!==Qn)throw Error align-items: center; margin-right: -6px !important; } - `}};var cr;n([Qe()],lr.prototype,"hass",void 0),n([Qe()],lr.prototype,"items",void 0),n([Qe({type:Array})],lr.prototype,"value",void 0),n([Qe()],lr.prototype,"label",void 0),n([Qe({type:Boolean})],lr.prototype,"invalid",void 0),lr=n([Ke("alarmo-selector")],lr),function(e){e[e.Yaml=0]="Yaml",e[e.UI=1]="UI"}(cr||(cr={}));let hr=class extends Ge{constructor(){super(...arguments),this.config={type:bn.Notification,triggers:[{}],actions:[{}]},this.viewMode=cr.UI,this.errors={}}async firstUpdated(){if(await et(),this.areas=await ht(this.hass),this.alarmoConfig=await tt(this.hass),this.item){let e=[...this.item.actions];this.config=Object.assign(Object.assign({},this.item),{actions:[e[0],...e.slice(1)]}),this.config.triggers.length>1&&(this.config=Object.assign(Object.assign({},this.config),{triggers:[this.config.triggers[0]]}));let t=this.config.triggers[0].area;Sn(t)&&!Qs(this.areas,this.alarmoConfig).includes(t)?t=void 0:null===t&&(t=0),this._setArea(new CustomEvent("value-changed",{detail:{value:t}}))}if(!Sn(this.config.triggers[0].area)){const e=Qs(this.areas,this.alarmoConfig);1==e.length?this._setArea(new CustomEvent("value-changed",{detail:{value:e[0]}})):e.includes(0)&&this._setArea(new CustomEvent("value-changed",{detail:{value:0}}))}}render(){var e,t,a,i,n,s,r;return this.hass&&this.areas&&this.alarmoConfig?Te` + `}};var cr;n([Qe()],lr.prototype,"hass",void 0),n([Qe()],lr.prototype,"items",void 0),n([Qe({type:Array})],lr.prototype,"value",void 0),n([Qe()],lr.prototype,"label",void 0),n([Qe({type:Boolean})],lr.prototype,"invalid",void 0),lr=n([Ke("alarmo-selector")],lr),function(e){e[e.Yaml=0]="Yaml",e[e.UI=1]="UI"}(cr||(cr={}));let hr=class extends Ge{constructor(){super(...arguments),this.config={type:bn.Notification,triggers:[{}],actions:[{}]},this.viewMode=cr.UI,this.errors={}}async firstUpdated(){if(await et(),this.areas=await ht(this.hass),this.alarmoConfig=await tt(this.hass),this.item){let e=[...this.item.actions];this.config=Object.assign(Object.assign({},this.item),{actions:[e[0],...e.slice(1)]}),null===this.config.actions[0].entity_id&&Object.assign(this.config.actions,{0:xn(this.config.actions[0],"entity_id")}),this.config.triggers.length>1&&(this.config=Object.assign(Object.assign({},this.config),{triggers:[this.config.triggers[0]]}));let t=this.config.triggers[0].area;Sn(t)&&!Qs(this.areas,this.alarmoConfig).includes(t)?t=void 0:null===t&&(t=0),this._setArea(new CustomEvent("value-changed",{detail:{value:t}}))}if(!Sn(this.config.triggers[0].area)){const e=Qs(this.areas,this.alarmoConfig);1==e.length?this._setArea(new CustomEvent("value-changed",{detail:{value:e[0]}})):e.includes(0)&&this._setArea(new CustomEvent("value-changed",{detail:{value:0}}))}}render(){var e,t,a,i,n,s,r;return this.hass&&this.areas&&this.alarmoConfig?Te`
${mn("panels.actions.cards.new_notification.title",this.hass.language)}
@@ -3167,7 +3167,7 @@ class ms extends Xn{constructor(e){if(super(e),this.et=V,e.type!==Qn)throw Error ${mn("title",this.hass.language)}
- v${"1.10.6"} + v${"1.10.7"}
diff --git a/custom_components/alarmo/frontend/src/const.ts b/custom_components/alarmo/frontend/src/const.ts index 15ea172..2c89290 100755 --- a/custom_components/alarmo/frontend/src/const.ts +++ b/custom_components/alarmo/frontend/src/const.ts @@ -1,4 +1,4 @@ -export const VERSION = '1.10.6'; +export const VERSION = '1.10.7'; export const platform = 'alarmo'; export const editConfigService = 'edit_config'; diff --git a/hacs.json b/hacs.json index 44b3f86..5d7e0c6 100755 --- a/hacs.json +++ b/hacs.json @@ -4,5 +4,5 @@ "zip_release": true, "filename": "alarmo.zip", "hide_default_branch": true, - "homeassistant": "2024.10.0" -} + "homeassistant": "2024.11.0" +} \ No newline at end of file