Skip to content
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

very WIP: expand dump-command for subcription things, like template rendering #62

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Habbie
Copy link
Member

@Habbie Habbie commented Mar 7, 2024

please read commit messages for status :)

Habbie added 6 commits March 7, 2024 20:18
TODO:
* --wait is actually always on now for dump-command, which is wrong
* the dump (see FIXME) is what makes this work at all, and we should be handling it cleanly. The code below it that ends in "didn't expect" has cases where it is entirely silent (type==event without event_typestate_changed)
* DoCommand may get confused from some async event that happens to come in at the wrong time
* perhaps we want the ability for front-cli to subscribe to the id of the command it sent

example command:
build/client-cli dump-command --wait render_template '{ "template":"{{ states(\"fan.ceiling_fan\") }} xx", "timeout": 3}'
@Habbie Habbie changed the title very WIP: expand dump-command for subcribtion things, like template rendering very WIP: expand dump-command for subcription things, like template rendering Mar 7, 2024
@Habbie Habbie mentioned this pull request Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant