-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add a note about the location of the event emitting function to the Shelly documentation #38447
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
Conversation
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 WalkthroughWalkthroughA note has been added to the Shelly integration documentation. It explains that to reduce integration startup time, only the first 5 KB of the script is downloaded and analyzed. If the script exceeds this size, users are instructed to position the event emitting function at the beginning of the script to ensure proper functionality. There are no changes to any public or exported entities. Changes
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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: 0
🧹 Nitpick comments (1)
source/_integrations/shelly.markdown (1)
166-169
: Clear Documentation Note on Event Emitting Function LocationThe new note clearly explains that only the first 5 KB of a script is downloaded and analyzed, and it advises users to place the event emitting function at the beginning if their script exceeds this limit. This addition should help prevent issues with integration startup time, aligning well with the PR objectives.
Consider a minor wording change for clarity. For example, replacing "negative impact on the integration startup time" with "increased startup time" might enhance readability.
Example diff suggestion:
-To avoid the negative impact on the integration startup time, only the first 5 KB of the script is downloaded and analyzed. If your script is longer, you must place the event emitting function at the beginning of it. +To avoid increased startup time, only the first 5 KB of the script is downloaded and analyzed. If your script exceeds 5 KB, place the event emitting function at the beginning to ensure it is processed.
Proposed change
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit