Skip to content

Commit d9b5e38

Browse files
committed
Fix
- ssl issue with HomeAssistant redirect (from secured HA to unsecured Plex)
1 parent 262c5b0 commit d9b5e38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

custom_components/plex_recently_added/redirect.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
CONF_NAME,
99
CONF_HOST,
1010
CONF_PORT,
11-
CONF_SSL
1211
)
1312

1413
from .const import DOMAIN
@@ -19,7 +18,7 @@ class ImagesRedirect(HomeAssistantView):
1918
def __init__(self, config_entry: ConfigEntry):
2019
super().__init__()
2120
self._token = config_entry.data[CONF_API_KEY]
22-
self._base_url = f'http{'s' if config_entry.data[CONF_SSL] else ''}://{config_entry.data[CONF_HOST]}:{config_entry.data[CONF_PORT]}'
21+
self._base_url = f'https://{config_entry.data[CONF_HOST]}:{config_entry.data[CONF_PORT]}'
2322
self.name = f'{self._token}_Plex_Recently_Added'
2423
self.url = f'/{config_entry.data[CONF_NAME].lower() + "_" if len(config_entry.data[CONF_NAME]) > 0 else ""}plex_recently_added'
2524

0 commit comments

Comments
 (0)