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

Ensure all command and service calls raise when disconnected #840

Merged
merged 1 commit into from Mar 10, 2024

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Mar 10, 2024

When a command was called and the connection was lost we did not raise a useful error for service calls and some of the command calls.

This fixes a cryptic error message the user tried to send a command or execute a service call when the device was disconnected
fixes #839

Copy link

codecov bot commented Mar 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (f8ee918) to head (378155f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #840   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        17           
  Lines         2449      2452    +3     
=========================================
+ Hits          2449      2452    +3     

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

@bdraco bdraco changed the title Ensure command and service calls raise when disconnected Ensure all command and service calls raise when disconnected Mar 10, 2024
@bdraco bdraco merged commit eabc3d4 into main Mar 10, 2024
10 checks passed
@bdraco bdraco deleted the ensure_raise_on_disconnected branch March 10, 2024 19:44
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.

thousands of error entries in homeassistant
1 participant