diff --git a/tests/components/sentry/test_init.py b/tests/components/sentry/test_init.py index f4486ca5a19..25b77922878 100644 --- a/tests/components/sentry/test_init.py +++ b/tests/components/sentry/test_init.py @@ -47,8 +47,8 @@ async def test_setup_entry(hass: HomeAssistant) -> None: assert entry.options[CONF_ENVIRONMENT] == "production" assert sentry_logging_mock.call_count == 1 - assert sentry_logging_mock.called_once_with( - level=logging.WARNING, event_level=logging.WARNING + sentry_logging_mock.assert_called_once_with( + level=logging.WARNING, event_level=logging.ERROR ) assert sentry_aiohttp_mock.call_count == 1