Open mlesniew opened 2 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.75%. Comparing base (
7122cdd
) to head (7347cf7
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The
Device.push_state_update
method only pushes values of properties, which were actually changed. This is tracked using the_dirty
instance variable.So far, the
_dirty
flag was cleared unconditionally, before sending messages to the AC. This commit makes sure it is done only after successfully sending the message. In case of errors, the_dirty
state will be preserved, so a subsequent call topush_state_update
will re-attempt sending the same properties.