Skip to content

fix: use proper config dir path (#174)#267

Open
scurkovic wants to merge 2 commits into
pytoyoda:mainfrom
scurkovic:main
Open

fix: use proper config dir path (#174)#267
scurkovic wants to merge 2 commits into
pytoyoda:mainfrom
scurkovic:main

Conversation

@scurkovic
Copy link
Copy Markdown

@scurkovic scurkovic commented Apr 3, 2026

This fixes #174 by properly fetching the config directory location from HA and using it as CWD before calling pytoyoda.

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Apr 3, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request implements a mechanism to temporarily switch the current working directory to a writable location during the login process to facilitate hishel caching. The review feedback highlights a performance concern regarding blocking I/O operations within the asynchronous config flow and identifies a potential bug in the directory restoration logic within the initialization module, providing a specific code suggestion to ensure the working directory is always safely restored.

Comment thread custom_components/toyota/config_flow.py Outdated
Comment thread custom_components/toyota/__init__.py Outdated
@scurkovic
Copy link
Copy Markdown
Author

@deejay1 I've rebased onto main.

@scurkovic scurkovic force-pushed the main branch 3 times, most recently from 50d1102 to 317e53f Compare April 29, 2026 08:44
@scurkovic
Copy link
Copy Markdown
Author

@deejay1 Since you've approved already, and I've been using it in production for a while now, would you mind merging?

@scurkovic scurkovic force-pushed the main branch 3 times, most recently from bcf6cd4 to 064a16e Compare May 29, 2026 12:25
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.

Problem on authenticating

2 participants