Instead of using our own MockConfigEntry, we're using the one provided directly from HA. It behaves exactly as the original one, with the only difference that we remove the MappingProxyType mapping (read-only protection) as we want to override values during tests.
This change is required to use config_entry fixture while testing our OptionsFlow.
Testing:
n/a
Extra Notes (optional):
n/a
Checklist
[x] Related issues and proposed changes are filled
[x] Tests are defining the correct and expected behavior
Related Issues
n/a
Proposed Changes:
Instead of using our own
MockConfigEntry
, we're using the one provided directly from HA. It behaves exactly as the original one, with the only difference that we remove theMappingProxyType
mapping (read-only protection) as we want to override values during tests.This change is required to use
config_entry
fixture while testing ourOptionsFlow
.Testing:
n/a
Extra Notes (optional):
n/a
Checklist