-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove compatibility with core without frontend.add_extra_js_url #3783
Conversation
The reason this is here is because nothing in core is using it, so there is a high chance it will just be removed. |
WalkthroughWalkthroughThe Changes
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configration 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
Outside diff range comments (3)
custom_components/hacs/frontend.py (3)
Line range hint
21-23
: Ensure that the warning about running in development mode is clear to the user. It might be beneficial to log this at a higher severity thanwarning
if it should never occur in production.Consider changing the log level to
error
to emphasize the importance of not using development mode in production environments.
Line range hint
33-42
: The registration of the custom panel and iconset uses hardcoded paths and configurations. This is generally fine, but consider making these values configurable through environment variables or configuration files for greater flexibility.Introducing configuration options for these paths and icons could improve the adaptability of this integration in different environments.
Line range hint
44-44
: The setup for the frontend endpoint plugin is asynchronous but does not handle potential exceptions. Consider adding error handling to ensure robustness.- await hacs.async_setup_frontend_endpoint_plugin() + try: + await hacs.async_setup_frontend_endpoint_plugin() + except Exception as e: + hacs.log.error(f"Failed to setup frontend endpoint plugin: {str(e)}")
Remove compatibility with core without
frontend.add_extra_js_url
Rationale:
frontend.add_extra_js_url was added 5 years ago in PR home-assistant/core#24675