mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Allow to skip SSL validation on Plex websocket (#28615)
This commit is contained in:
parent
fadb6a3979
commit
2bdfa9928b
@ -160,7 +160,10 @@ async def async_setup_entry(hass, entry):
|
|||||||
async_dispatcher_send(hass, PLEX_UPDATE_PLATFORMS_SIGNAL.format(server_id))
|
async_dispatcher_send(hass, PLEX_UPDATE_PLATFORMS_SIGNAL.format(server_id))
|
||||||
|
|
||||||
session = async_get_clientsession(hass)
|
session = async_get_clientsession(hass)
|
||||||
websocket = PlexWebsocket(plex_server.plex_server, update_plex, session)
|
verify_ssl = server_config.get(CONF_VERIFY_SSL)
|
||||||
|
websocket = PlexWebsocket(
|
||||||
|
plex_server.plex_server, update_plex, session=session, verify_ssl=verify_ssl
|
||||||
|
)
|
||||||
hass.loop.create_task(websocket.listen())
|
hass.loop.create_task(websocket.listen())
|
||||||
hass.data[PLEX_DOMAIN][WEBSOCKETS][server_id] = websocket
|
hass.data[PLEX_DOMAIN][WEBSOCKETS][server_id] = websocket
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"requirements": [
|
"requirements": [
|
||||||
"plexapi==3.0.6",
|
"plexapi==3.0.6",
|
||||||
"plexauth==0.0.5",
|
"plexauth==0.0.5",
|
||||||
"plexwebsocket==0.0.3"
|
"plexwebsocket==0.0.4"
|
||||||
],
|
],
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"http"
|
"http"
|
||||||
|
@ -983,7 +983,7 @@ plexapi==3.0.6
|
|||||||
plexauth==0.0.5
|
plexauth==0.0.5
|
||||||
|
|
||||||
# homeassistant.components.plex
|
# homeassistant.components.plex
|
||||||
plexwebsocket==0.0.3
|
plexwebsocket==0.0.4
|
||||||
|
|
||||||
# homeassistant.components.plum_lightpad
|
# homeassistant.components.plum_lightpad
|
||||||
plumlightpad==0.0.11
|
plumlightpad==0.0.11
|
||||||
|
@ -326,7 +326,7 @@ plexapi==3.0.6
|
|||||||
plexauth==0.0.5
|
plexauth==0.0.5
|
||||||
|
|
||||||
# homeassistant.components.plex
|
# homeassistant.components.plex
|
||||||
plexwebsocket==0.0.3
|
plexwebsocket==0.0.4
|
||||||
|
|
||||||
# homeassistant.components.mhz19
|
# homeassistant.components.mhz19
|
||||||
# homeassistant.components.serial_pm
|
# homeassistant.components.serial_pm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user