Add system generated users (#15291)
* Add system generated users * Fix typing
This commit is contained in:
parent
a6e9dc81aa
commit
cb129bd207
7 changed files with 149 additions and 102 deletions
|
@ -312,7 +312,8 @@ class MockUser(auth.User):
|
|||
def __init__(self, id='mock-id', is_owner=True, is_active=True,
|
||||
name='Mock User'):
|
||||
"""Initialize mock user."""
|
||||
super().__init__(id, is_owner, is_active, name)
|
||||
super().__init__(
|
||||
id=id, is_owner=is_owner, is_active=is_active, name=name)
|
||||
|
||||
def add_to_hass(self, hass):
|
||||
"""Test helper to add entry to hass."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue