Skip to content
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

Allow passing data when subscribing for state updates #67

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

bgoncal
Copy link
Member

@bgoncal bgoncal commented Nov 12, 2024

So we can subscribe only for the entities/domains that the app would actually use.
Related:

@bgoncal bgoncal requested a review from zacwest November 12, 2024 14:10
@bgoncal bgoncal self-assigned this Nov 12, 2024
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.86%. Comparing base (c7f34a4) to head (07982b2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
- Coverage   99.87%   99.86%   -0.02%     
==========================================
  Files          51       51              
  Lines        1636     2236     +600     
==========================================
+ Hits         1634     2233     +599     
- Misses          2        3       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bgoncal bgoncal force-pushed the entity-type-sub-defined branch 2 times, most recently from 6978461 to 4cc137c Compare November 12, 2024 14:20
@bgoncal bgoncal merged commit c182963 into main Dec 3, 2024
4 of 5 checks passed
@bgoncal bgoncal deleted the entity-type-sub-defined branch December 3, 2024 12:52
bgoncal added a commit to home-assistant/iOS that referenced this pull request Dec 3, 2024
<!-- Thank you for submitting a Pull Request and helping to improve Home
Assistant. Please complete the following sections to help the processing
and review of your changes. Please do not delete anything from this
template. -->

## Summary
<!-- Provide a brief summary of the changes you have made and most
importantly what they aim to achieve -->
Subscribe only to domains that the app has usage for, so we dont keep
getting state updates for entities the app has no feature related to
that.

Pending: home-assistant/HAKit#67

## Screenshots
<!-- If this is a user-facing change not in the frontend, please include
screenshots in light and dark mode. -->

## Link to pull request in Documentation repository
<!-- Pull requests that add, change or remove functionality must have a
corresponding pull request in the Companion App Documentation repository
(https://github.com/home-assistant/companion.home-assistant). Please add
the number of this pull request after the "#" -->
Documentation: home-assistant/companion.home-assistant#

## Any other notes
<!-- If there is any other information of note, like if this Pull
Request is part of a bigger change, please include it here. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant