Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move session from init to api #81

Merged
merged 2 commits into from
Feb 11, 2024

Conversation

olanystrom
Copy link
Contributor

Move session from init to api and into WellbeingApiClient to fetch from hass-object when needed instead of written info WellbeingApiClient on init. Might fix the intermittent errors on fetching data.

The changes in whitespace are due to VSCode cleaning =)

Move session from __init__ to api and into WellbeingApiClient to fetch from hass-object when needed instead of written info WellbeingApiClient on init.
Might fix the intermittent errors on fetching data.
@olanystrom
Copy link
Contributor Author

This is a test to fix #78 hopefully.

Copy link
Owner

@JohNan JohNan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Let's go!

self._access_token = None
self._token = None
self.hass = hass
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to not make self.hass private?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that is a good idea. It should be private

@JohNan JohNan merged commit 90a7c3c into JohNan:main Feb 11, 2024
2 checks passed
@olanystrom olanystrom deleted the move_session_into_apiclient branch February 11, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants