-
Notifications
You must be signed in to change notification settings - Fork 187
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 warning about using incorrect schema for entity service registration #312
Conversation
WalkthroughThe changes in this pull request involve modifying the Changes
Possibly related issues
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 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
🧹 Outside diff range and nitpick comments (1)
custom_components/nodered/switch.py (1)
34-38
: Consider monitoring Home Assistant schema changes.While this change addresses the immediate warning for HA Core 2025.9, it would be beneficial to:
- Monitor Home Assistant's deprecation timeline for any related schema changes
- Consider adding a comment documenting this change and its relation to HA Core 2025.9 compatibility
Add a comment above the schema:
+# Updated schema format for HA Core 2025.9 compatibility SERVICE_TRIGGER_SCHEMA = {
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
custom_components/nodered/switch.py
(1 hunks)
🔇 Additional comments (2)
custom_components/nodered/switch.py (2)
34-38
: LGTM! Schema changes align with Home Assistant Core requirements.
The transition from vol.Schema
to dictionary format maintains all necessary validations while complying with future Home Assistant Core requirements. This change should resolve the warning about non-compliant schema.
34-38
: Verify service registration functionality.
While the schema changes look correct, let's verify that the service registration works as expected with the new schema format.
2024-10-12 12:00:30.700 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'nodered' registers an entity service with a non entity service schema which will stop working in HA Core 2025.9 at custom_components/nodered/switch.py, line 62: platform.async_register_entity_service(, please create a bug report at https://github.com/zachowj/hass-node-red/issues
Summary by CodeRabbit