Skip to content

Commit

Permalink
Initialize _session member on YouTube controller (#925)
Browse files Browse the repository at this point in the history
* Initialize `_session` member on YouTube controller

* Fix mypy lint warnings
  • Loading branch information
alexdelorenzo authored Aug 30, 2024
1 parent fd85b3b commit 0887406
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pychromecast/controllers/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down

0 comments on commit 0887406

Please sign in to comment.