Fix Plex debounce wrapper (#33730)

* Fix debounce wrapper by converting to async

* Review suggestions
This commit is contained in:
jjlawren authored and GitHub committed 2020-04-06 09:57:51 -07:00
1 parent cedf7e3945
commit 6dfffb23c4
3 files changed
+14 -17

No files matched your search

+1 -1
View File
@@ -175,7 +175,7 @@ async def async_setup_entry(hass, entry):
unsub = async_dispatcher_connect(
hass,
PLEX_UPDATE_PLATFORMS_SIGNAL.format(server_id),
plex_server.update_platforms,
plex_server.async_update_platforms,
)
hass.data[PLEX_DOMAIN][DISPATCHERS].setdefault(server_id, [])
hass.data[PLEX_DOMAIN][DISPATCHERS][server_id].append(unsub)