Skip to content

Add play media action#11702

Merged
bramkragten merged 24 commits intodevfrom
play-media-action
Feb 18, 2022
Merged

Add play media action#11702
bramkragten merged 24 commits intodevfrom
play-media-action

Conversation

@bramkragten
Copy link
Copy Markdown
Member

@bramkragten bramkragten commented Feb 16, 2022

Proposed change

Add play media action + media selector

Needs: home-assistant/core#66663

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:

zsarnett
zsarnett previously approved these changes Feb 16, 2022
@balloob balloob added the needs design preview PRs with this label will trigger a GitHub action to generate a gallery preview label Feb 16, 2022
selector: { select: { options: ["Option 1", "Option 2"] } },
},
icon: { name: "Icon", selector: { icon: {} } },
media: { name: "Media", selector: { media: {} } },
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.

Can we also add it to the ha-form gallery page. It has a form with all selectors.

Copy link
Copy Markdown
Member

@balloob balloob Feb 16, 2022

Choose a reason for hiding this comment

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

Also, we have automation/selectors.ts too. We have 2 design pages for selectors? 🤣

https://620d65c9f5140e8acf3cf643--home-assistant-gallery.netlify.app/#components/ha-selector

Changing between browse and manual logs a JS error.

Comment on lines +166 to +167
media_class?: string;
children_media_class?: string | null;
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.

Can we collapse this into a single value to be used?

balloob
balloob previously approved these changes Feb 17, 2022
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
@bramkragten bramkragten merged commit 5c5459b into dev Feb 18, 2022
@bramkragten bramkragten deleted the play-media-action branch February 18, 2022 12:21
@github-actions github-actions bot locked and limited conversation to collaborators Feb 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed needs design preview PRs with this label will trigger a GitHub action to generate a gallery preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants