-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bang & Olufsen add beolink grouping (#113438)
* Add Beolink custom services Add support for media player grouping via beolink Give media player entity name * Fix progress not being set to None as Beolink listener Revert naming changes * Update API simplify Beolink attributes * Improve beolink custom services * Fix Beolink expandable source check Add unexpand return value Set entity name on initialization * Handle entity naming as intended * Fix "null" Beolink self friendly name * Add regex service input validation Add all_discovered to beolink_expand service Improve beolink_expand response * Add service icons * Fix merge Remove unnecessary assignment * Remove invalid typing Update response typing for updated API * Revert to old typed response dict method Remove mypy ignore line Fix jid possibly used before assignment * Re add debugging logging * Fix coroutine Fix formatting * Remove unnecessary update control * Make tests pass Fix remote leader media position bug Improve remote leader BangOlufsenSource comparison * Fix naming and add callback decorators * Move regex service check to variable Suppress KeyError Update tests * Re-add hass running check * Improve comments, naming and type hinting * Remove old temporary fix * Convert logged warning to raised exception for invalid media_player Simplify code using walrus operator * Fix test for invalid media_player grouping * Improve method naming * Improve _beolink_sources explanation * Improve _beolink_sources explanation * Fix tests * Remove service responses Fix and add tests * Change service to action where applicable * Show playback progress for listeners * Fix testing * Remove useless initialization * Fix allstandby name * Fix various casts with assertions Fix comment placement Fix group leader group_members rebase error Replace entity_id method call with attribute * Add syrupy snapshots for Beolink tests, checking entity states Use test JIDs 3 and 4 instead of 2 and 3 to avoid invalid attributes in testing * Add sections for fields using Beolink JIDs directly * Fix typo * FIx rebase mistake * Sort actions alphabetically
- Loading branch information
Showing
9 changed files
with
1,485 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"services": { | ||
"beolink_join": { "service": "mdi:location-enter" }, | ||
"beolink_expand": { "service": "mdi:location-enter" }, | ||
"beolink_unexpand": { "service": "mdi:location-exit" }, | ||
"beolink_leave": { "service": "mdi:close-circle-outline" }, | ||
"beolink_allstandby": { "service": "mdi:close-circle-multiple-outline" } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
beolink_allstandby: | ||
target: | ||
entity: | ||
integration: bang_olufsen | ||
domain: media_player | ||
device: | ||
integration: bang_olufsen | ||
|
||
beolink_expand: | ||
target: | ||
entity: | ||
integration: bang_olufsen | ||
domain: media_player | ||
device: | ||
integration: bang_olufsen | ||
fields: | ||
all_discovered: | ||
required: false | ||
example: false | ||
selector: | ||
boolean: | ||
jid_options: | ||
collapsed: false | ||
fields: | ||
beolink_jids: | ||
required: false | ||
example: >- | ||
[ | ||
[email protected], | ||
[email protected] | ||
] | ||
selector: | ||
object: | ||
|
||
beolink_join: | ||
target: | ||
entity: | ||
integration: bang_olufsen | ||
domain: media_player | ||
device: | ||
integration: bang_olufsen | ||
fields: | ||
jid_options: | ||
collapsed: false | ||
fields: | ||
beolink_jid: | ||
required: false | ||
example: [email protected] | ||
selector: | ||
text: | ||
|
||
beolink_leave: | ||
target: | ||
entity: | ||
integration: bang_olufsen | ||
domain: media_player | ||
device: | ||
integration: bang_olufsen | ||
|
||
beolink_unexpand: | ||
target: | ||
entity: | ||
integration: bang_olufsen | ||
domain: media_player | ||
device: | ||
integration: bang_olufsen | ||
fields: | ||
jid_options: | ||
collapsed: false | ||
fields: | ||
beolink_jids: | ||
required: true | ||
example: >- | ||
[ | ||
[email protected], | ||
[email protected] | ||
] | ||
selector: | ||
object: |
Oops, something went wrong.