Skip to content

Commit

Permalink
release v1.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsfaber committed Jan 16, 2022
1 parent 98a0343 commit 4e51c17
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 175 deletions.
2 changes: 1 addition & 1 deletion custom_components/alarmo/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

from homeassistant.helpers import config_validation as cv

VERSION = "1.8.2"
VERSION = "1.8.3"
NAME = "Alarmo"
MANUFACTURER = "@nielsfaber"

Expand Down
340 changes: 170 additions & 170 deletions custom_components/alarmo/frontend/dist/alarm-panel.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion custom_components/alarmo/frontend/src/const.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = '1.8.2';
export const VERSION = '1.8.3';

export const platform = 'alarmo';
export const editConfigService = 'edit_config';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export class AutomationEditorCard extends LitElement {
this._setArea(new CustomEvent('value-changed', { detail: { value: areaOptions[0] } }));
else if (areaOptions.includes(0)) this._setArea(new CustomEvent('value-changed', { detail: { value: 0 } }));
}

if(this.item && !this.config.triggers[0].area && !this.alarmoConfig.master.enabled) this.errors = {...this.errors, area: true};
}

protected render(): TemplateResult {
Expand Down Expand Up @@ -149,7 +151,7 @@ export class AutomationEditorCard extends LitElement {
label=${localize('panels.actions.cards.new_action.fields.area.heading', this.hass.language)}
.value=${this.config.triggers[0].area}
@value-changed=${this._setArea}
?invalid=${this.errors.area || (!this.config.triggers[0].area && !this.alarmoConfig.master.enabled)}
?invalid=${this.errors.area}
></alarmo-select>
</settings-row>
`
Expand Down Expand Up @@ -529,8 +531,10 @@ export class AutomationEditorCard extends LitElement {
return localize(
`panels.actions.cards.new_action.fields.name.placeholders.${event}`,
this.hass.language,
['{entity}', '{state}'],
[entity, state]
'entity',
entity,
'state',
state
);
}

Expand Down

0 comments on commit 4e51c17

Please sign in to comment.