Skip to content

v1.0.1

Choose a tag to compare

@github-actions github-actions released this 12 May 20:54
· 37 commits to main since this release

v1.0.1 (2026-05-12)

This release is published under the Apache-2.0 License.

Bug Fixes

  • Protocol type alias raises TypeError at import (#100, 631371b)

fix: PROTOCOL type alias raises TypeError at import

The typing modernization sweep replaced PROTOCOL = Union[WEBSOCKETS, XMPP] with PROTOCOL = WEBSOCKETS | XMPP, but WEBSOCKETS and XMPP are str values not types, so the PEP 604 expression evaluates "WEBSOCKETS" | "XMPP" at runtime and raises TypeError. Any "from aioharmony.const import ..." now fails on import.

The original Union[...] form was already semantically wrong (Union of string forward refs); the intent was a string-literal type, so this lands as Literal["WEBSOCKETS", "XMPP"].


Detailed Changes: v1.0.0...v1.0.1