-
-
Notifications
You must be signed in to change notification settings - Fork 80
Adding API Password deprecation information. #1382
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
base: main
Are you sure you want to change the base?
Conversation
Since API passwords are deprecated, I added information about using API encryption keys, instead of API Passwords to the readme file.
for more information, see https://pre-commit.ci
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1382 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 22 22
Lines 3335 3335
=========================================
Hits 3335 3335 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughDocumentation updated to deprecate using API passwords in ESPHome in favor of an encryption key ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (1)📚 Learning: 2024-11-23T18:39:41.119ZApplied to files:
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
CodSpeed Performance ReportMerging #1382 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
README.rst(3 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
- Do not generate or add any sequence diagrams
Files:
README.rst
Fixed typos mentioned by @coderabbitai
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
README.rst (1)
68-104: Polish the new Python examples for readability.Add the missing spaces after commas and in the comments so the snippets follow the style used elsewhere in the README.
- # If a password is used in the ESP configuration use the following line: - api = aioesphomeapi.APIClient("api_test.local", 6053, "MyPassword",noise_psk='aaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaa=') + # If a password is used in the ESP configuration, use the following line: + api = aioesphomeapi.APIClient("api_test.local", 6053, "MyPassword", noise_psk='aaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaa=') # OR - #If there is no password used in the ESP configuration: - api = aioesphomeapi.APIClient("api_test.local", 6053, None,noise_psk='aaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaa=') + # If there is no password used in the ESP configuration: + api = aioesphomeapi.APIClient("api_test.local", 6053, None, noise_psk='aaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaa=') @@ - # If a password is used in the ESP configuration use the following line: - cli = aioesphomeapi.APIClient("api_test.local", 6053, "MyPassword",noise_psk='aaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaa=') + # If a password is used in the ESP configuration, use the following line: + cli = aioesphomeapi.APIClient("api_test.local", 6053, "MyPassword", noise_psk='aaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaa=') # OR - #If there is no password used in the ESP configuration: + # If there is no password used in the ESP configuration:
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
README.rst(3 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
- Do not generate or add any sequence diagrams
Files:
README.rst
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: py 3.12 on windows-latest (skip_cython)
- GitHub Check: Run benchmarks
Applying deprecation message in ESPHome api config as proposed by @coderabbitai Also added info about the usage of the `noise_psk` option.
|
Real dumb question here. I never made a pull request on public repos before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the README documentation to reflect that API passwords in ESPHome are deprecated, guiding users to use encryption keys instead.
- Added deprecation notice for API passwords and guidance to use encryption keys
- Updated YAML configuration example to show both deprecated password and recommended encryption key
- Modified Python code examples to demonstrate using the
noise_pskparameter withAPIClient
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Thank you @jesserockz for getting into this request I'll make a new commit shortly for some of the things mentioned by copilot. |
applied fixed for the 2nd comment by copilot about instantiation.
Clarified options for connecting to ESPHome device based on configuration.
|
@jesserockz All of copilot's comments are now resolved, there's a few things I'm not too sure about, so please check out the commits I made. |
Since API passwords are deprecated, I added information about using API encryption keys, instead of API Passwords to the readme file.
What does this implement/fix?
Types of changes
Related issue or feature (if applicable):
Pull request in esphome (if applicable):
Checklist:
tests/folder).