Add config entries to connection class (#16618)
This commit is contained in:
1 parent
3e0c6c176a
commit
201fd4afee
24 files changed
+104
-63
No files matched your search
+4
-2
@@ -550,14 +550,16 @@ class MockConfigEntry(config_entries.ConfigEntry):
|
||||
|
||||
def __init__(self, *, domain='test', data=None, version=0, entry_id=None,
|
||||
source=config_entries.SOURCE_USER, title='Mock Title',
|
||||
state=None):
|
||||
state=None,
|
||||
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 {},
|
||||
'version': version,
|
||||
'title': title
|
||||
'title': title,
|
||||
'connection_class': connection_class,
|
||||
}
|
||||
if source is not None:
|
||||
kwargs['source'] = source
|
||||
|
||||
Reference in new issue
Block a user