Skip to content

Commit

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

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

Expand Down Expand Up @@ -70,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=HomeAssistantError,
side_effect=UpdateFailed,
):
yield

Expand Down

0 comments on commit b8acc4a

Please sign in to comment.