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:
9
tests/components/plex/helpers.py
Normal file
9
tests/components/plex/helpers.py
Normal 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()
|
||||
Reference in New Issue
Block a user