Discover controllable Plex clients using plex.tv (#36857)

This commit is contained in:
jjlawren authored and GitHub committed 2020-06-17 12:04:47 -07:00
1 parent 94c8d74a66
commit d5cc3208af
7 files changed
+193 -34

No files matched your search

+3 -2
View File
@@ -479,8 +479,9 @@ async def test_option_flow_new_users_available(hass, caplog):
server_id = mock_plex_server.machineIdentifier
async_dispatcher_send(hass, PLEX_UPDATE_PLATFORMS_SIGNAL.format(server_id))
await hass.async_block_till_done()
with patch("plexapi.myplex.MyPlexAccount", return_value=MockPlexAccount()):
async_dispatcher_send(hass, PLEX_UPDATE_PLATFORMS_SIGNAL.format(server_id))
await hass.async_block_till_done()
monitored_users = hass.data[DOMAIN][SERVERS][server_id].option_monitored_users