hass-core/homeassistant/components/yamaha_musiccast
Joakim Plate 8910d265d6
Keep track of a context for each listener (#72702)
* Remove async_remove_listener

This avoids the ambuigity as to what happens if same callback is added multiple times.

* Keep track of a context for each listener

This allow a update coordinator to adapt what data to request on update from the backing service based on which entities are enabled.

* Clone list before calling callbacks

The callbacks can end up unregistering and modifying the dict while iterating.

* Only yield actual values

* Add a test for update context

* Factor out iteration of _listeners to helper

* Verify context is passed to coordinator

* Switch to Any as type instead of object

* Remove function which use was dropped earliers

The use was removed in 8bee25c938
2022-06-03 13:55:57 +02:00
..
translations [ci skip] Translation update 2022-06-02 00:27:51 +00:00
__init__.py Add Yamaha MusicCast Switch Entities (#66925) 2022-04-26 18:41:12 +02:00
config_flow.py Remove deprecated YAML configuration from Yamaha Music Cast (#69033) 2022-03-31 13:35:44 -07:00
const.py Remove deprecated YAML configuration from Yamaha Music Cast (#69033) 2022-03-31 13:35:44 -07:00
manifest.json Prettify json (manifest.json) (#68886) 2022-03-30 10:56:37 +02:00
media_player.py Keep track of a context for each listener (#72702) 2022-06-03 13:55:57 +02:00
number.py
select.py Fix MusicCast select current_option (#63668) 2022-01-11 08:49:02 +01:00
strings.json Prettify json (strings.json) (#68885) 2022-03-30 10:35:30 +02:00
strings.select.json Prettify json (strings.json) (#68885) 2022-03-30 10:35:30 +02:00
switch.py Add Yamaha MusicCast Switch Entities (#66925) 2022-04-26 18:41:12 +02:00