From 8e1103050cdc1476179d469827eea40c4f7820ef Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 13 Jun 2024 17:10:37 +0200 Subject: [PATCH] Fix dangerous-default-value warnings in core tests (#119568) --- tests/common.py | 4 ++-- tests/test_util/aiohttp.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/common.py b/tests/common.py index ec7b5ca46b7..24fb6cf458f 100644 --- a/tests/common.py +++ b/tests/common.py @@ -693,9 +693,9 @@ def mock_device_registry( class MockGroup(auth_models.Group): """Mock a group in Home Assistant.""" - def __init__(self, id=None, name="Mock Group", policy=system_policies.ADMIN_POLICY): + def __init__(self, id=None, name="Mock Group"): """Mock a group.""" - kwargs = {"name": name, "policy": policy} + kwargs = {"name": name, "policy": system_policies.ADMIN_POLICY} if id is not None: kwargs["id"] = id diff --git a/tests/test_util/aiohttp.py b/tests/test_util/aiohttp.py index 742b111143f..b4b8cfa4b6d 100644 --- a/tests/test_util/aiohttp.py +++ b/tests/test_util/aiohttp.py @@ -54,7 +54,7 @@ class AiohttpClientMocker: content=None, json=None, params=None, - headers={}, + headers=None, exc=None, cookies=None, side_effect=None,