1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Plex tests cleanup and additions (#37117)

This commit is contained in:
jjlawren
2020-06-26 02:24:58 -04:00
committed by GitHub
parent 56907392d3
commit 40573bf393
5 changed files with 102 additions and 196 deletions

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()