Make dispatch signals unique per server (#28029)

This commit is contained in:
jjlawren authored and Martin Hjelmare committed 2019-10-21 10:44:07 +02:00
1 parent 6844d203a1
commit d1fcc5762b
4 files changed
+18 -6

No files matched your search

+10 -2
View File
@@ -147,9 +147,17 @@ class PlexServer:
self.refresh_entity(client_id, None, None)
if new_entity_configs:
dispatcher_send(self._hass, PLEX_NEW_MP_SIGNAL, new_entity_configs)
dispatcher_send(
self._hass,
PLEX_NEW_MP_SIGNAL.format(self.machine_identifier),
new_entity_configs,
)
dispatcher_send(self._hass, PLEX_UPDATE_SENSOR_SIGNAL, sessions)
dispatcher_send(
self._hass,
PLEX_UPDATE_SENSOR_SIGNAL.format(self.machine_identifier),
sessions,
)
@property
def friendly_name(self):