mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Fix Plex setup race condition v2 (#28943)
* Connect websocket when platforms ready, not when HA is ready * Use callbacks from platform setup tasks instead * Convert setup to async * Apply suggestions from code review Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -9,7 +9,8 @@ DEFAULT_SSL = False
|
||||
DEFAULT_VERIFY_SSL = True
|
||||
|
||||
DISPATCHERS = "dispatchers"
|
||||
PLATFORMS = ["media_player", "sensor"]
|
||||
PLATFORMS = frozenset(["media_player", "sensor"])
|
||||
PLATFORMS_COMPLETED = "platforms_completed"
|
||||
SERVERS = "servers"
|
||||
WEBSOCKETS = "websockets"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user