-
Notifications
You must be signed in to change notification settings - Fork 71
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
Dont call subscription callback when we want single state only #930
Conversation
WalkthroughThe changes involve a modification in the control flow of the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant HomeAssistant
Client->>HomeAssistant: Subscribe to state
HomeAssistant-->>Client: State response received
alt on_state_request is true
Client->>Client: Handle state request
else on_state_request is false and msg.once is true
Client->>Client: Call on_state_sub(msg.entity_id, msg.attribute)
end
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional context usedPath-based instructions (1)
Additional comments not posted (5)
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 Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #930 +/- ##
===========================================
- Coverage 100.00% 99.96% -0.04%
===========================================
Files 17 17
Lines 2563 2575 +12
===========================================
+ Hits 2563 2574 +11
- Misses 0 1 +1 ☔ View full report in Codecov by Sentry. |
Forgot this should be an
else
.Didnt realise until I decided to add some logging to ha core that it was calling both still.