From 08874060368d82c559748e278fd9ef576a5ab4c2 Mon Sep 17 00:00:00 2001 From: Alex DeLorenzo <3579286+alexdelorenzo@users.noreply.github.com> Date: Fri, 30 Aug 2024 16:28:19 -0400 Subject: [PATCH] Initialize `_session` member on YouTube controller (#925) * Initialize `_session` member on YouTube controller * Fix mypy lint warnings --- pychromecast/controllers/youtube.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pychromecast/controllers/youtube.py b/pychromecast/controllers/youtube.py index b80e7929d..96567a9d5 100644 --- a/pychromecast/controllers/youtube.py +++ b/pychromecast/controllers/youtube.py @@ -84,6 +84,7 @@ def __init__(self, timeout: float = 10) -> None: super().__init__(YOUTUBE_NAMESPACE, APP_YOUTUBE) self.status_update_event = threading.Event() self._timeout = timeout + self._session = None def start_session_if_none(self) -> None: """