Central update for Plex platforms (#27764)
* Update Plex platforms together * Remove unnecessary methods * Overhaul of Plex update logic * Apply suggestions from code review Use set instead of list Co-Authored-By: Martin Hjelmare <marhje52@kth.se> * Review suggestions and cleanup * Fixes, remove sensor throttle * Guarantee entity name, use common scheme * Keep name stable once set
This commit is contained in:
parent
5c50fa3405
commit
eeb1bfc6f5
6 changed files with 252 additions and 266 deletions
|
@ -79,7 +79,7 @@ class PlexFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
errors = {}
|
||||
self.current_login = server_config
|
||||
|
||||
plex_server = PlexServer(server_config)
|
||||
plex_server = PlexServer(self.hass, server_config)
|
||||
try:
|
||||
await self.hass.async_add_executor_job(plex_server.connect)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue