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

Add bluesound speaker group attribute #28142

Merged

Conversation

bluestripe
Copy link
Contributor

@bluestripe bluestripe commented Oct 23, 2019

Breaking Change:

None

Description:

Added device attribute bluesound_group with a list of entities that are in a speaker group (analogous to the sonos component) and master to indicate whether the device is the master. The master is the first item in the list, followed by one or more slaves.

This change makes it possible for i.e. mini-media-player to properly display speaker groups of bluesound devices in much the same way as is done for Sonos devices already.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the [development checklist][dev-checklist]

@project-bot project-bot bot added this to Needs review in Dev Oct 23, 2019
@MartinHjelmare MartinHjelmare changed the title Added bluesound speaker group attribute. Add bluesound speaker group attribute Oct 23, 2019
@bluestripe
Copy link
Contributor Author

I'm a bit puzzeled. With the last commit the checks no longer pass. Says "Black failed", even though locally black is all fine... Can anybody help me how to handle this?

@frenck
Copy link
Member

frenck commented Oct 24, 2019

Please rebase this PR onto the latest dev, that will fix your build issue.

https://developers.home-assistant.io/docs/en/development_catching_up.html

@bluestripe
Copy link
Contributor Author

Please rebase this PR onto the latest dev, that will fix your build issue.

Thanks for the reply; I was a bit stuck. Done the rebase now, fingers crossed.

homeassistant/components/bluesound/media_player.py Outdated Show resolved Hide resolved
homeassistant/components/bluesound/media_player.py Outdated Show resolved Hide resolved
homeassistant/components/bluesound/media_player.py Outdated Show resolved Hide resolved
homeassistant/components/bluesound/media_player.py Outdated Show resolved Hide resolved
Dev automation moved this from Needs review to Review in progress Nov 3, 2019
Copy link
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Great!

Dev automation moved this from Review in progress to Reviewer approved Nov 3, 2019
@MartinHjelmare
Copy link
Member

Can be merged when build passes.

@bluestripe
Copy link
Contributor Author

Nice... Thanks for your review!

@MartinHjelmare MartinHjelmare merged commit 0954f7d into home-assistant:dev Nov 9, 2019
Dev automation moved this from Reviewer approved to Done Nov 9, 2019
@lock lock bot locked and limited conversation to collaborators Nov 10, 2019
@bluestripe bluestripe deleted the bluesound-group-attribute branch November 15, 2019 10:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Dev
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants