Skip to content

fix: avoid duplicate getCurrentState API call in hmip_cli#626

Open
lackas wants to merge 2 commits intohahn-th:masterfrom
lackas:fix-duplicate-getcurrentstate-call
Open

fix: avoid duplicate getCurrentState API call in hmip_cli#626
lackas wants to merge 2 commits intohahn-th:masterfrom
lackas:fix-duplicate-getcurrentstate-call

Conversation

@lackas
Copy link
Collaborator

@lackas lackas commented Feb 2, 2026

Summary

  • When --dump-config is used, reuse the already downloaded configuration via update_home() instead of calling get_current_state_async() which fetches the same data again

Fixes #594

When --dump-config is used, the configuration is already downloaded.
Reuse this data via update_home() instead of calling get_current_state_async()
which would fetch the same data again.

Fixes hahn-th#594
@lackas lackas closed this Feb 3, 2026
@lackas lackas reopened this Feb 3, 2026
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.40%. Comparing base (ae117a3) to head (cb90e1c).
⚠️ Report is 169 commits behind head on master.

Files with missing lines Patch % Lines
src/homematicip/cli/hmip_cli.py 0.00% 4 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #626      +/-   ##
==========================================
- Coverage   96.78%   91.40%   -5.39%     
==========================================
  Files          49       55       +6     
  Lines       10298    10309      +11     
==========================================
- Hits         9967     9423     -544     
- Misses        331      886     +555     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

getCurrentState is called twice

2 participants