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

fix: invalid device state after bind #100

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cmroche
Copy link
Owner

@cmroche cmroche commented Aug 11, 2024

Immediately call for as state update as soon as the device is bound, add a signal that can be used to check that the device has received it's first state update.

Removed unused, optional, wait_for parameter on update_state and send_device_state

CLOSES #99

Immediately call for as state update as soon as the device is bound, add a signal that can be used to check that the device has received it's first state update.
Copy link

codecov bot commented Aug 11, 2024

Codecov Report

Attention: Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.79%. Comparing base (7122cdd) to head (fbf9748).
Report is 1 commits behind head on master.

Files Patch % Lines
greeclimate/device.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #100      +/-   ##
==========================================
+ Coverage   95.75%   95.79%   +0.04%     
==========================================
  Files           8        8              
  Lines         730      737       +7     
==========================================
+ Hits          699      706       +7     
  Misses         31       31              

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

Add test for request_version with timeout
@cmroche cmroche changed the title Fix invalid device state after bind fix: invalid device state after bind Aug 11, 2024
@cmroche cmroche self-assigned this Aug 11, 2024
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.

Device returns invalid state after binding, and before first state update is received
1 participant