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

Fixes add-on audio selector #4648

Merged
merged 4 commits into from Feb 1, 2020
Merged

Fixes add-on audio selector #4648

merged 4 commits into from Feb 1, 2020

Conversation

ludeeus
Copy link
Member

@ludeeus ludeeus commented Jan 29, 2020

Proposed change

  • Use iron-select instead of selected-item-changed to trigger _set*Device

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

For the most part yaml is not really needed here is it?

Additional information

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.

How? Why? Examples, please.

  • Tests have been added to verify that the new code works.

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

@@ -123,14 +123,14 @@ class HassioAddonAudio extends LitElement {
}

private _setInputDevice(ev): void {
const device = ev.detail.device;
const device = ev.detail.item.attributes.device.value;
Copy link
Member

Choose a reason for hiding this comment

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

set device as property and use ev.detail.item.device or use ev.detail.item.getAttribute("device")

Copy link
Member Author

Choose a reason for hiding this comment

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

Property looked cleaner.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah but now your attr-for-selected is missing

Copy link
Member Author

Choose a reason for hiding this comment

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

Right...

@ludeeus ludeeus changed the title Fixes add-on audio selector WIP: Fixes add-on audio selector Jan 29, 2020
@balloob balloob changed the title WIP: Fixes add-on audio selector Fixes add-on audio selector Feb 1, 2020
@balloob balloob merged commit 3215437 into home-assistant:dev Feb 1, 2020
@lock lock bot locked and limited conversation to collaborators Feb 2, 2020
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.

Selecting/disabling Audio devices on add-ons doesn't work
4 participants