Plex tests cleanup and additions (#37117)
This commit is contained in:
1 parent
56907392d3
commit
40573bf393
5 files changed
+102
-196
No files matched your search
@@ -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()
|
||||
Reference in new issue
Block a user