Skip to content

Add async_verify_device to validate a Qube host (v1.17.0) - #6

Merged
MattieGit merged 1 commit into
mainfrom
verify-device
Oct 7, 2026
Merged

MattieGit merged 1 commit into
mainfrom
verify-device

Conversation

@MattieGit

Copy link
Copy Markdown
Owner

Summary

  • New async_verify_device(): returns True when register 77 (GeneralMng.Softversion) can be read, also when it reads 0, and False when the read fails.
  • Since 1.16.1, async_get_software_version() returns None for a register that reads 0. The Home Assistant core config flow uses None to mean "not a Qube", so a core bump to 1.16.1 would reject Qubes on 4.1.00. Core will use this method to validate a host instead.
  • async_get_software_version() is unchanged.
  • README feature line; version 1.17.0.

Testing

  • New tests: a version value and a 0 reading both verify; a failed read does not. 145 pass, ruff 0.14.14 clean.
  • The core branch that bumps to 1.17.0 and switches the config flow to this method passes its tests against this branch.

@MattieGit
MattieGit merged commit 760948e into main Oct 7, 2026
3 checks passed
@MattieGit
MattieGit deleted the verify-device branch October 7, 2026 12:15
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.

1 participant