Replace abodepy library with jaraco.abode to enable new Abode devices (#85474)
* replaced abodepy library with jaraco.abode * updated jaraco.abode to version 3.2.1 * send capture event as dict
This commit is contained in:
parent
66f12d7dab
commit
63bddae01d
24 changed files with 118 additions and 114 deletions
|
@ -44,7 +44,7 @@ async def test_open(hass: HomeAssistant) -> None:
|
|||
"""Test the cover can be opened."""
|
||||
await setup_platform(hass, COVER_DOMAIN)
|
||||
|
||||
with patch("abodepy.AbodeCover.open_cover") as mock_open:
|
||||
with patch("jaraco.abode.devices.cover.Cover.open_cover") as mock_open:
|
||||
await hass.services.async_call(
|
||||
COVER_DOMAIN, SERVICE_OPEN_COVER, {ATTR_ENTITY_ID: DEVICE_ID}, blocking=True
|
||||
)
|
||||
|
@ -56,7 +56,7 @@ async def test_close(hass: HomeAssistant) -> None:
|
|||
"""Test the cover can be closed."""
|
||||
await setup_platform(hass, COVER_DOMAIN)
|
||||
|
||||
with patch("abodepy.AbodeCover.close_cover") as mock_close:
|
||||
with patch("jaraco.abode.devices.cover.Cover.close_cover") as mock_close:
|
||||
await hass.services.async_call(
|
||||
COVER_DOMAIN,
|
||||
SERVICE_CLOSE_COVER,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue