Skip to content

Conversation

@torbennehmer
Copy link
Contributor

A number of fixes done for my HA integration to work cleanly.

partly fixes 73:

S10E Serial number detection did not work, a missing elif masked the corresponding check
A few exported classes were missing (notably SendError for error detection)
Calls to set_power_save have been streamlined a bit for easier usage.

A missing elif masked the S10E serial number detection, fixed.
We need to parse the return value and compare it to our requested value.
Streamlined the code along the way.
Needed for error detection
E3DCs do indeed return an statusflag here (misinterpretation of mine).
Use int(enable) directly in this case, the intermediate is not needed.
@torbennehmer torbennehmer mentioned this pull request May 7, 2023
@vchrisb vchrisb merged commit 30cc0c2 into fsantini:master May 9, 2023
@torbennehmer torbennehmer deleted the s10-fixes-part1 branch May 16, 2023 15:46
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.

2 participants