Skip to content

Convert scene action to service call#11705

Merged
bramkragten merged 4 commits intodevfrom
scene-action-to-service-call
Feb 16, 2022
Merged

Convert scene action to service call#11705
bramkragten merged 4 commits intodevfrom
scene-action-to-service-call

Conversation

@bramkragten
Copy link
Copy Markdown
Member

@bramkragten bramkragten commented Feb 16, 2022

Proposed change

Not default to specific scene action anymore, but use a service call.

Needs: home-assistant/core#66672

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:


const getType = (action: Action | undefined) =>
action ? OPTIONS.find((option) => option in action) : undefined;
const getType = (action: Action | undefined) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't we re-use getActionType ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we would have to change all the element names 😅 but yes, I do want to do that, found it a bit late though

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aaah ok . yeah not this pr.

balloob
balloob previously approved these changes Feb 16, 2022
@bramkragten bramkragten merged commit 89f4fe9 into dev Feb 16, 2022
@bramkragten bramkragten deleted the scene-action-to-service-call branch February 16, 2022 19:47
@github-actions github-actions bot locked and limited conversation to collaborators Feb 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants