v0.19.0
[0.19.0] - 2026-01-25
Fixed
- Exit
TypeRegistry.convertearly if already a valid type - Avoid mutating state dicts when accessing via
DomainStates
Added
- Add
__contains__method to DomainStates- Allows us to use
inchecks
- Allows us to use
- Add
to_dict,keys,values, anditemsmethods to DomainStates- Provides convenient access to entity IDs and typed states
- Add
yield_domain_statesto StateProxy- Allows iterating over all states in the proxy
- Handles KeyError when extracting domain
- Update
DomainStatesclass to accept aStateProxyinstance instead of state dictionary to ensure it stays up to date - Add caching to
StateManager, holding on to eachDomainStatesinstance after creation - Add caching to
DomainStates, usingfrozendict.deepfreezeto hash the state dict and avoid recreating the instance if it has not changed
Removed
- BREAKING: Remove
_TypedStateGetterclass and correspondinggetmethod onStateManager- this was never a good idea due to its confusing api - BREAKING: Remove
allproperty onStateManager- this is to avoid calculating all states unnecessarily
Full Changelog: v0.18.1...v0.19.0