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:
Robert Svensson 2019-08-18 06:34:11 +02:00 committed by Paulus Schoutsen
parent fc716a45c9
commit a2589f56e1
29 changed files with 254 additions and 27 deletions

View file

@ -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,