-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sequence support to dashboard action #22303
Conversation
@@ -174,6 +174,7 @@ export class HaServiceControl extends LitElement { | |||
if (this._value && serviceData) { | |||
const loadDefaults = this.value && !("data" in this.value); | |||
// Set mandatory bools without a default value to false | |||
this._value = { ...this._value }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed to avoid the modification on the source value.
private _entitiesContext = new ContextProvider(this, { | ||
context: fullEntitiesContext, | ||
initialValue: [], | ||
}); | ||
|
||
public hassSubscribe(): UnsubscribeFunc[] { | ||
return [ | ||
subscribeEntityRegistry(this.hass!.connection!, (entities) => { | ||
this._entitiesContext.setValue(entities); | ||
}), | ||
]; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not like this 😢
You can do the same by running a script, we dont want to this to dashboards. |
Proposed change
Adds sequence support to dashboard actions.
It will allow calling a full sequence of action.
It will unlock multiple features like :
You can also consider migrating the perform action to this one.
This PR is still draft because it needs #22300 to be merged, otherwise drag and drop will not work.
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: