You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then if I want to extend it to add new functionality then the logical thing to is use the !extend command. However, the extend command currently works by only appending lists - so a change which is intended to modify control flow doesn't work - i.e. this:
And have it accomplish the original intent - replace rather then extend the on_state list of actions.
Please describe your use case for this integration and alternatives you've tried:
The use case is replacing control flow in existing packages where I am not simply extending the action lists.
The current alternative is to the use the !remove syntax and copy and paste the entire component into the derived file. This is fine, but it does limit the usefulness of the !extend syntax.
Additional context
The text was updated successfully, but these errors were encountered:
Describe the problem you have/What new integration you would like
When I have a package with a component in it that includes a list of actions - i.e. a binary sensor for a switch or something similar like so:
then if I want to extend it to add new functionality then the logical thing to is use the
!extend
command. However, the extend command currently works by only appending lists - so a change which is intended to modify control flow doesn't work - i.e. this:results in this effective configuration:
Note that the list has simple had the actions appended. I understand this is intended behavior and serves a sensible use case under most conditions.
What I would like to be able to do is something like this:
And have it accomplish the original intent - replace rather then extend the
on_state
list of actions.Please describe your use case for this integration and alternatives you've tried:
The use case is replacing control flow in existing packages where I am not simply extending the action lists.
The current alternative is to the use the
!remove
syntax and copy and paste the entire component into the derived file. This is fine, but it does limit the usefulness of the!extend
syntax.Additional context
The text was updated successfully, but these errors were encountered: