1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Merge system options into pref properties (#51347)

* Make system options future proof

* Update tests

* Add types
This commit is contained in:
Paulus Schoutsen
2021-06-01 13:34:31 -07:00
committed by GitHub
parent 9e3ee73b8b
commit ee2c950716
27 changed files with 188 additions and 245 deletions

View File

@@ -732,7 +732,8 @@ class MockConfigEntry(config_entries.ConfigEntry):
title="Mock Title",
state=None,
options={},
system_options={},
pref_disable_new_entities=None,
pref_disable_polling=None,
unique_id=None,
disabled_by=None,
reason=None,
@@ -742,7 +743,8 @@ class MockConfigEntry(config_entries.ConfigEntry):
"entry_id": entry_id or uuid_util.random_uuid_hex(),
"domain": domain,
"data": data or {},
"system_options": system_options,
"pref_disable_new_entities": pref_disable_new_entities,
"pref_disable_polling": pref_disable_polling,
"options": options,
"version": version,
"title": title,