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

[#38] Add schema validation for functions, script function bug fixed #47

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

jekalmin
Copy link
Owner

Objective

  • Add schema validation for functions
  • If function is not valid, throw an error before calling API.

Bug Fix

  • script function should support all actions like if-then statement.

    - spec:
        ...
      function:
        type: script
        sequence:
          - if:
              - condition: state
                entity_id: ...
                state: "..."
            then:
              - service: media_player.select_source
                data: ...

@jekalmin jekalmin self-assigned this Dec 11, 2023
@jekalmin jekalmin added this to the 0.0.9 milestone Dec 11, 2023
@jekalmin jekalmin merged commit 9df2726 into v0.0.9 Dec 11, 2023
@jekalmin jekalmin deleted the fix-func-schema branch December 24, 2023 09:02
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