Skip to content

Commit

Permalink
Fix session id
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneNulschDE committed Nov 23, 2024
1 parent 25bf3e5 commit 9273d4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/mbapi2020/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(
self.config_entry = config_entry
self._locale: str = DEFAULT_LOCALE
self._country_code: str = DEFAULT_COUNTRY_CODE
self.session_id = str(uuid.UUID(config_entry.entry_id) if config_entry else uuid.uuid4()).upper()
self.session_id = str(uuid.uuid4()).upper()

self.oauth: Oauth = Oauth(
hass=self._hass,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/mbapi2020/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(
self._action: Callable[..., Awaitable] = action
self._loop = asyncio.get_event_loop()
self._timer_task: Optional[asyncio.TimerHandle] = None
self._timeout: int = 30
self._timeout: int = timeout_seconds

def cancel(self):
"""Cancel the watchdog."""
Expand Down

0 comments on commit 9273d4c

Please sign in to comment.