Add system options to config entries (#25926)
* Add system options to config entries * For feedback * Follow most of balloobs comments * Fix balloobs comments * Improvements * Fix second round of Balloobs comments * Fix third round * Add system options to mock config entry * Fix integration tests * Fix the last failing tests * Fix disabled string * Fix failing disabled_by tests * New tests * Config entry WS API tests * Fix comments
This commit is contained in:
parent
fc716a45c9
commit
a2589f56e1
29 changed files with 254 additions and 27 deletions
|
@ -665,6 +665,7 @@ class MockConfigEntry(config_entries.ConfigEntry):
|
|||
title="Mock Title",
|
||||
state=None,
|
||||
options={},
|
||||
system_options={},
|
||||
connection_class=config_entries.CONN_CLASS_UNKNOWN,
|
||||
):
|
||||
"""Initialize a mock config entry."""
|
||||
|
@ -672,6 +673,7 @@ class MockConfigEntry(config_entries.ConfigEntry):
|
|||
"entry_id": entry_id or uuid.uuid4().hex,
|
||||
"domain": domain,
|
||||
"data": data or {},
|
||||
"system_options": system_options,
|
||||
"options": options,
|
||||
"version": version,
|
||||
"title": title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue