Fix dangerous-default-value warnings in homematicip_cloud tests (#119583)

This commit is contained in:
epenet 2024-06-13 17:08:40 +02:00 committed by GitHub
parent 835d422a90
commit 75e0aee8fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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