Config entry options (#18929)
Add support for options flow for config entries
This commit is contained in:
parent
caa3b123ae
commit
d9712027e8
5 changed files with 365 additions and 24 deletions
|
@ -609,13 +609,14 @@ class MockConfigEntry(config_entries.ConfigEntry):
|
|||
|
||||
def __init__(self, *, domain='test', data=None, version=1, entry_id=None,
|
||||
source=config_entries.SOURCE_USER, title='Mock Title',
|
||||
state=None,
|
||||
state=None, options={},
|
||||
connection_class=config_entries.CONN_CLASS_UNKNOWN):
|
||||
"""Initialize a mock config entry."""
|
||||
kwargs = {
|
||||
'entry_id': entry_id or 'mock-id',
|
||||
'domain': domain,
|
||||
'data': data or {},
|
||||
'options': options,
|
||||
'version': version,
|
||||
'title': title,
|
||||
'connection_class': connection_class,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue