Skip to content

Commit

Permalink
change error
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L committed Nov 11, 2024
1 parent f9340c7 commit 2ddaef0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import pytest
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import HomeAssistantError
from homeassistant.setup import async_setup_component
from pytest_homeassistant_custom_component.common import MockConfigEntry

Expand Down Expand Up @@ -69,7 +70,7 @@ def error_get_data_fixture():
"""Simulate error when retrieving data from API."""
with patch(
"custom_components.bermuda.BermudaDataUpdateCoordinator.async_refresh",
side_effect=Exception,
side_effect=HomeAssistantError,
):
yield

Expand Down

0 comments on commit 2ddaef0

Please sign in to comment.