From 27ee204e2f6820f54c450dfdded830eb43ac8f94 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:51:45 +0200 Subject: [PATCH] Fix dangerous-default-value warnings in mqtt tests (#119584) --- tests/components/mqtt/test_siren.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/components/mqtt/test_siren.py b/tests/components/mqtt/test_siren.py index bb4b103225e..28b88e2793d 100644 --- a/tests/components/mqtt/test_siren.py +++ b/tests/components/mqtt/test_siren.py @@ -61,8 +61,8 @@ DEFAULT_CONFIG = { async def async_turn_on( hass: HomeAssistant, - entity_id: str = ENTITY_MATCH_ALL, - parameters: dict[str, Any] = {}, + entity_id: str, + parameters: dict[str, Any], ) -> None: """Turn all or specified siren on.""" data = {ATTR_ENTITY_ID: entity_id} if entity_id else {} @@ -144,7 +144,7 @@ async def test_sending_mqtt_commands_and_optimistic( assert state.state == STATE_OFF assert state.attributes.get(ATTR_ASSUMED_STATE) - await async_turn_on(hass, entity_id="siren.test") + await async_turn_on(hass, entity_id="siren.test", parameters={}) mqtt_mock.async_publish.assert_called_once_with( "command-topic", '{"state":"beer on"}', 2, False