mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
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:
@@ -31,7 +31,7 @@ async def test_capture_image(hass: HomeAssistant) -> None:
|
||||
"""Test the camera capture image service."""
|
||||
await setup_platform(hass, CAMERA_DOMAIN)
|
||||
|
||||
with patch("abodepy.AbodeCamera.capture") as mock_capture:
|
||||
with patch("jaraco.abode.devices.camera.Camera.capture") as mock_capture:
|
||||
await hass.services.async_call(
|
||||
ABODE_DOMAIN,
|
||||
"capture_image",
|
||||
@@ -46,7 +46,7 @@ async def test_camera_on(hass: HomeAssistant) -> None:
|
||||
"""Test the camera turn on service."""
|
||||
await setup_platform(hass, CAMERA_DOMAIN)
|
||||
|
||||
with patch("abodepy.AbodeCamera.privacy_mode") as mock_capture:
|
||||
with patch("jaraco.abode.devices.camera.Camera.privacy_mode") as mock_capture:
|
||||
await hass.services.async_call(
|
||||
CAMERA_DOMAIN,
|
||||
"turn_on",
|
||||
@@ -61,7 +61,7 @@ async def test_camera_off(hass: HomeAssistant) -> None:
|
||||
"""Test the camera turn off service."""
|
||||
await setup_platform(hass, CAMERA_DOMAIN)
|
||||
|
||||
with patch("abodepy.AbodeCamera.privacy_mode") as mock_capture:
|
||||
with patch("jaraco.abode.devices.camera.Camera.privacy_mode") as mock_capture:
|
||||
await hass.services.async_call(
|
||||
CAMERA_DOMAIN,
|
||||
"turn_off",
|
||||
|
||||
Reference in New Issue
Block a user