Enhanced
- Type Safety: Complete integration of TypedDict definitions from
type_definitions.pyDeviceInfoDictnow used throughout for device informationAPIVersionResponseproperly returned from version checksStructuredValuesDictcorrectly typed for structured instant valuesValueDictextended 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