Plex tests cleanup and additions (#37117)

This commit is contained in:
jjlawren authored and GitHub committed 2020-06-25 23:24:58 -07:00
1 parent 56907392d3
commit 40573bf393
5 files changed
+102 -196

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
"""Helper methods for Plex tests."""
from homeassistant.components.plex.const import DOMAIN, WEBSOCKETS
def trigger_plex_update(hass, plex_server):
"""Call the websocket callback method."""
server_id = plex_server.machineIdentifier
websocket = hass.data[DOMAIN][WEBSOCKETS][server_id]
websocket.callback()