mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 06:05:26 +01:00
Reinitialize zeroconf discovery flow on unignore (#125753)
* Reinitialize zeroconf discovery flow on unignore * Adjust tests * Improve comments * Fix logic for updating discovery keys * Add tests * Use mock_config_flow helper in new config_entries test * Add discovery_keys attribute to ConfigEntry * Update zeroconf rediscovery * Change type of ConfigEntry.discovery_keys * Update tests * Fix DiscoveryKey.from_json_dict and add tests * Fix test --------- Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
@@ -990,6 +990,7 @@ class MockConfigEntry(config_entries.ConfigEntry):
|
||||
*,
|
||||
data=None,
|
||||
disabled_by=None,
|
||||
discovery_keys=(),
|
||||
domain="test",
|
||||
entry_id=None,
|
||||
minor_version=1,
|
||||
@@ -1007,6 +1008,7 @@ class MockConfigEntry(config_entries.ConfigEntry):
|
||||
kwargs = {
|
||||
"data": data or {},
|
||||
"disabled_by": disabled_by,
|
||||
"discovery_keys": discovery_keys,
|
||||
"domain": domain,
|
||||
"entry_id": entry_id or ulid_util.ulid_now(),
|
||||
"minor_version": minor_version,
|
||||
|
||||
Reference in New Issue
Block a user