Fix tag trigger (#13588)

This commit is contained in:
Bram Kragten 2022-09-05 14:08:52 +02:00 committed by GitHub
parent fe8e79a67f
commit 310df387e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,9 +58,9 @@ export class HaTagTrigger extends LitElement implements TriggerElement {
private _tagChanged(ev) {
if (
!ev.detail.value ||
!ev.target.value ||
!this._tags ||
this.trigger.tag_id === ev.detail.value
this.trigger.tag_id === ev.target.value
) {
return;
}