mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix dangerous-default-value warnings in homematicip_cloud tests (#119583)
This commit is contained in:
parent
835d422a90
commit
75e0aee8fc
@ -84,7 +84,7 @@ class HomeFactory:
|
|||||||
self.hmip_config_entry = hmip_config_entry
|
self.hmip_config_entry = hmip_config_entry
|
||||||
|
|
||||||
async def async_get_mock_hap(
|
async def async_get_mock_hap(
|
||||||
self, test_devices=[], test_groups=[]
|
self, test_devices=None, test_groups=None
|
||||||
) -> HomematicipHAP:
|
) -> HomematicipHAP:
|
||||||
"""Create a mocked homematic access point."""
|
"""Create a mocked homematic access point."""
|
||||||
home_name = self.hmip_config_entry.data["name"]
|
home_name = self.hmip_config_entry.data["name"]
|
||||||
@ -130,7 +130,9 @@ class HomeTemplate(Home):
|
|||||||
_typeGroupMap = TYPE_GROUP_MAP
|
_typeGroupMap = TYPE_GROUP_MAP
|
||||||
_typeSecurityEventMap = TYPE_SECURITY_EVENT_MAP
|
_typeSecurityEventMap = TYPE_SECURITY_EVENT_MAP
|
||||||
|
|
||||||
def __init__(self, connection=None, home_name="", test_devices=[], test_groups=[]):
|
def __init__(
|
||||||
|
self, connection=None, home_name="", test_devices=None, test_groups=None
|
||||||
|
):
|
||||||
"""Init template with connection."""
|
"""Init template with connection."""
|
||||||
super().__init__(connection=connection)
|
super().__init__(connection=connection)
|
||||||
self.name = home_name
|
self.name = home_name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user