Skip to content

examples: use the type-annotated HID driver - #170

Merged
sde1000 merged 1 commit into
sde1000:masterfrom
tridonic-com:use-typed-hid-driver
Nov 25, 2026
Merged

sde1000 merged 1 commit into
sde1000:masterfrom
tridonic-com:use-typed-hid-driver

Conversation

@markus-becker-tridonic-com

Copy link
Copy Markdown
Contributor

examples: use the type-annotated HID driver

Follow-up to the serial example change. Repoints the seven HID examples from
dalidrivers.misc.hid to the type-annotated dalidrivers.typed.hid, so they
use the PEP 561 typed Tridonic DALI-USB / hasseb driver:

  • async-buswatch.py, async-commissioning.py, async-dalitest.py,
    async-flash.py, async-supplyoff.py, async-supplyon.py, async-tc.py

Import-path change only; class names (tridonic, hasseb) are unchanged.

Merge dependency: this requires the type-annotated HID driver to be
released in dali-drivers (the dalidrivers.typed.hid module). Merge this
only once that release is available.

Import the Tridonic DALI-USB and hasseb HID drivers from dali-drivers'
type-annotated subpackage (dalidrivers.typed.hid) rather than
dalidrivers.misc.hid, so the HID examples benefit from the PEP 561 typed
driver.

Follow-up to the serial example change; depends on the type-annotated
HID driver being released in dali-drivers (the dalidrivers.typed.hid
module), so merge this only once that release is available.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sde1000
sde1000 merged commit 1e1b60d into sde1000:master Nov 25, 2026
6 checks passed
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