Skip to content

Commit

Permalink
Fix DeviceEntry mock.
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Oct 5, 2023
1 parent 97bf76b commit a3ad252
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
)
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import ConfigEntryNotReady
from homeassistant.helpers.device_registry import DeviceEntry
from homeassistant.util import dt as dt_util
from pyplumio.const import AlertType
from pyplumio.structures.alerts import Alert
Expand Down Expand Up @@ -123,7 +122,7 @@ async def test_setup_events(
from_dt=dt_util.parse_datetime(DATE_FROM),
to_dt=dt_util.parse_datetime(DATE_TO),
)
mock_device_entry = Mock(spec=DeviceEntry)
mock_device_entry = Mock()

with patch(
"homeassistant.helpers.device_registry.DeviceRegistry.async_get_device",
Expand Down

0 comments on commit a3ad252

Please sign in to comment.