v1.0.1
v1.0.1 (2026-05-12)
This release is published under the Apache-2.0 License.
Bug Fixes
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