Add Roon volume hooks (#102470)

* Add ability for roon to call HA for volume changes.

* Fix merge errors.

* Fix mypy errors.

* Remove config option for hooks.

* WIP split entities.

* Tidy, fix test.

* Tidy after review.

* Remove event tests for now.

* Recview comments.

* remove trace.

* Bump pyroon to 0.1.5, deregister volume hooks.

* Remove type annotations.

* Add new file .coveragerc.

* Remove ghost constants.

* Review changes.

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Greg Dowling 2023-11-12 10:58:15 +00:00 committed by GitHub
parent 5a452155fc
commit 6a7e87f1c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 131 additions and 7 deletions

View file

@ -105,7 +105,7 @@ class RoonServer:
self._exit = True
def roonapi_state_callback(self, event, changed_zones):
"""Callbacks from the roon api websockets."""
"""Callbacks from the roon api websocket with state change."""
self.hass.add_job(self.async_update_changed_players(changed_zones))
async def async_do_loop(self):