Ignore broad-exception-raised pylint warnings in tests (#119468)

This commit is contained in:
epenet 2024-06-12 12:21:41 +02:00 committed by GitHub
parent 0c79eeabdf
commit 2a7e78a80f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 18 additions and 11 deletions

View file

@ -261,7 +261,7 @@ async def test_platform_setup_with_error(
async def async_get_service(hass, config, discovery_info=None):
"""Return None for an invalid notify service."""
raise Exception("Setup error")
raise Exception("Setup error") # pylint: disable=broad-exception-raised
mock_notify_platform(
hass, tmp_path, "testnotify", async_get_service=async_get_service