mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
fix: add previous repeat action configuration on change (#13717)
This commit is contained in:
parent
f4dc74b2e8
commit
b84240edbc
@ -115,6 +115,7 @@ export class HaRepeatAction extends LitElement implements ActionElement {
|
|||||||
|
|
||||||
fireEvent(this, "value-changed", {
|
fireEvent(this, "value-changed", {
|
||||||
value: {
|
value: {
|
||||||
|
...this.action,
|
||||||
repeat: { [type]: value, sequence: this.action.repeat.sequence },
|
repeat: { [type]: value, sequence: this.action.repeat.sequence },
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -125,6 +126,7 @@ export class HaRepeatAction extends LitElement implements ActionElement {
|
|||||||
const value = ev.detail.value as Condition[];
|
const value = ev.detail.value as Condition[];
|
||||||
fireEvent(this, "value-changed", {
|
fireEvent(this, "value-changed", {
|
||||||
value: {
|
value: {
|
||||||
|
...this.action,
|
||||||
repeat: {
|
repeat: {
|
||||||
...this.action.repeat,
|
...this.action.repeat,
|
||||||
[getType(this.action.repeat)!]: value,
|
[getType(this.action.repeat)!]: value,
|
||||||
@ -138,6 +140,7 @@ export class HaRepeatAction extends LitElement implements ActionElement {
|
|||||||
const value = ev.detail.value as Action[];
|
const value = ev.detail.value as Action[];
|
||||||
fireEvent(this, "value-changed", {
|
fireEvent(this, "value-changed", {
|
||||||
value: {
|
value: {
|
||||||
|
...this.action,
|
||||||
repeat: {
|
repeat: {
|
||||||
...this.action.repeat,
|
...this.action.repeat,
|
||||||
sequence: value,
|
sequence: value,
|
||||||
@ -153,6 +156,7 @@ export class HaRepeatAction extends LitElement implements ActionElement {
|
|||||||
}
|
}
|
||||||
fireEvent(this, "value-changed", {
|
fireEvent(this, "value-changed", {
|
||||||
value: {
|
value: {
|
||||||
|
...this.action,
|
||||||
repeat: {
|
repeat: {
|
||||||
...this.action.repeat,
|
...this.action.repeat,
|
||||||
count: newVal,
|
count: newVal,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user