Skip to content

0.7.8

Latest

Choose a tag to compare

@lmaertin lmaertin released this 27 Oct 21:37

Enhanced

  • Type Safety: Complete integration of TypedDict definitions from type_definitions.py
    • DeviceInfoDict now used throughout for device information
    • APIVersionResponse properly returned from version checks
    • StructuredValuesDict correctly typed for structured instant values
    • ValueDict extended with min/max/step fields for number types
  • Home Assistant Compatibility: Full strict typing compliance for HA integrations
    • All public API methods use proper TypedDict types
    • MyPy strict mode passes without any type: ignore comments
    • PEP-561 compliance maintained and enhanced
  • Code Quality: Elegant use of string literals for TypedDict keys
    • Replaced runtime casting with compile-time type safety
    • Improved maintainability and readability
    • Better IDE support and autocompletion

Fixed

  • StaticValues: Now accepts DeviceInfoDict directly without casting
  • InstantValues: to_structured_dict() returns proper StructuredValuesDict type
  • Constants: get_default_device_info() returns correct DeviceInfoDict type

Full Changelog: 0.7.7...0.7.8