mirror of
https://github.com/home-assistant/core.git
synced 2025-06-25 01:21:51 +02:00
Switch to PyEzvizApi (#135926)
* Update library * update library * Bump api to pin mqtt to compatable version * fix after rebase * Update code owners * codeowners
This commit is contained in:
4
CODEOWNERS
generated
4
CODEOWNERS
generated
@ -455,8 +455,8 @@ build.json @home-assistant/supervisor
|
||||
/tests/components/evil_genius_labs/ @balloob
|
||||
/homeassistant/components/evohome/ @zxdavb
|
||||
/tests/components/evohome/ @zxdavb
|
||||
/homeassistant/components/ezviz/ @RenierM26 @baqs
|
||||
/tests/components/ezviz/ @RenierM26 @baqs
|
||||
/homeassistant/components/ezviz/ @RenierM26
|
||||
/tests/components/ezviz/ @RenierM26
|
||||
/homeassistant/components/faa_delays/ @ntilley905
|
||||
/tests/components/faa_delays/ @ntilley905
|
||||
/homeassistant/components/fan/ @home-assistant/core
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
import logging
|
||||
|
||||
from pyezviz.client import EzvizClient
|
||||
from pyezviz.exceptions import (
|
||||
from pyezvizapi.client import EzvizClient
|
||||
from pyezvizapi.exceptions import (
|
||||
EzvizAuthTokenExpired,
|
||||
EzvizAuthVerificationCode,
|
||||
HTTPError,
|
||||
|
@ -6,8 +6,8 @@ from dataclasses import dataclass
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
from pyezviz import PyEzvizError
|
||||
from pyezviz.constants import DefenseModeType
|
||||
from pyezvizapi import PyEzvizError
|
||||
from pyezvizapi.constants import DefenseModeType
|
||||
|
||||
from homeassistant.components.alarm_control_panel import (
|
||||
AlarmControlPanelEntity,
|
||||
|
@ -6,9 +6,9 @@ from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from typing import Any
|
||||
|
||||
from pyezviz import EzvizClient
|
||||
from pyezviz.constants import SupportExt
|
||||
from pyezviz.exceptions import HTTPError, PyEzvizError
|
||||
from pyezvizapi import EzvizClient
|
||||
from pyezvizapi.constants import SupportExt
|
||||
from pyezvizapi.exceptions import HTTPError, PyEzvizError
|
||||
|
||||
from homeassistant.components.button import ButtonEntity, ButtonEntityDescription
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
@ -4,7 +4,7 @@ from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
||||
from pyezviz.exceptions import HTTPError, InvalidHost, PyEzvizError
|
||||
from pyezvizapi.exceptions import HTTPError, InvalidHost, PyEzvizError
|
||||
|
||||
from homeassistant.components import ffmpeg
|
||||
from homeassistant.components.camera import Camera, CameraEntityFeature
|
||||
|
@ -6,15 +6,15 @@ from collections.abc import Mapping
|
||||
import logging
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from pyezviz.client import EzvizClient
|
||||
from pyezviz.exceptions import (
|
||||
from pyezvizapi.client import EzvizClient
|
||||
from pyezvizapi.exceptions import (
|
||||
AuthTestResultFailed,
|
||||
EzvizAuthVerificationCode,
|
||||
InvalidHost,
|
||||
InvalidURL,
|
||||
PyEzvizError,
|
||||
)
|
||||
from pyezviz.test_cam_rtsp import TestRTSPAuth
|
||||
from pyezvizapi.test_cam_rtsp import TestRTSPAuth
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult, OptionsFlow
|
||||
|
@ -4,8 +4,8 @@ import asyncio
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
from pyezviz.client import EzvizClient
|
||||
from pyezviz.exceptions import (
|
||||
from pyezvizapi.client import EzvizClient
|
||||
from pyezvizapi.exceptions import (
|
||||
EzvizAuthTokenExpired,
|
||||
EzvizAuthVerificationCode,
|
||||
HTTPError,
|
||||
|
@ -5,8 +5,8 @@ from __future__ import annotations
|
||||
import logging
|
||||
|
||||
from propcache.api import cached_property
|
||||
from pyezviz.exceptions import PyEzvizError
|
||||
from pyezviz.utils import decrypt_image
|
||||
from pyezvizapi.exceptions import PyEzvizError
|
||||
from pyezvizapi.utils import decrypt_image
|
||||
|
||||
from homeassistant.components.image import Image, ImageEntity, ImageEntityDescription
|
||||
from homeassistant.config_entries import SOURCE_IGNORE
|
||||
|
@ -4,8 +4,8 @@ from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from pyezviz.constants import DeviceCatagories, DeviceSwitchType, SupportExt
|
||||
from pyezviz.exceptions import HTTPError, PyEzvizError
|
||||
from pyezvizapi.constants import DeviceCatagories, DeviceSwitchType, SupportExt
|
||||
from pyezvizapi.exceptions import HTTPError, PyEzvizError
|
||||
|
||||
from homeassistant.components.light import ATTR_BRIGHTNESS, ColorMode, LightEntity
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"domain": "ezviz",
|
||||
"name": "EZVIZ",
|
||||
"codeowners": ["@RenierM26", "@baqs"],
|
||||
"codeowners": ["@RenierM26"],
|
||||
"config_flow": true,
|
||||
"dependencies": ["ffmpeg"],
|
||||
"documentation": "https://www.home-assistant.io/integrations/ezviz",
|
||||
"iot_class": "cloud_polling",
|
||||
"loggers": ["paho_mqtt", "pyezviz"],
|
||||
"requirements": ["pyezviz==0.2.1.2"]
|
||||
"loggers": ["paho_mqtt", "pyezvizapi"],
|
||||
"requirements": ["pyezvizapi==1.0.0.7"]
|
||||
}
|
||||
|
@ -6,8 +6,8 @@ from dataclasses import dataclass
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
from pyezviz.constants import SupportExt
|
||||
from pyezviz.exceptions import (
|
||||
from pyezvizapi.constants import SupportExt
|
||||
from pyezvizapi.exceptions import (
|
||||
EzvizAuthTokenExpired,
|
||||
EzvizAuthVerificationCode,
|
||||
HTTPError,
|
||||
|
@ -4,8 +4,8 @@ from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
from pyezviz.constants import DeviceSwitchType, SoundMode
|
||||
from pyezviz.exceptions import HTTPError, PyEzvizError
|
||||
from pyezvizapi.constants import DeviceSwitchType, SoundMode
|
||||
from pyezvizapi.exceptions import HTTPError, PyEzvizError
|
||||
|
||||
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
||||
from homeassistant.const import EntityCategory
|
||||
|
@ -6,7 +6,7 @@ from collections.abc import Callable
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Any
|
||||
|
||||
from pyezviz import HTTPError, PyEzvizError, SupportExt
|
||||
from pyezvizapi import HTTPError, PyEzvizError, SupportExt
|
||||
|
||||
from homeassistant.components.siren import (
|
||||
SirenEntity,
|
||||
|
@ -5,8 +5,8 @@ from __future__ import annotations
|
||||
from dataclasses import dataclass
|
||||
from typing import Any
|
||||
|
||||
from pyezviz.constants import DeviceSwitchType, SupportExt
|
||||
from pyezviz.exceptions import HTTPError, PyEzvizError
|
||||
from pyezvizapi.constants import DeviceSwitchType, SupportExt
|
||||
from pyezvizapi.exceptions import HTTPError, PyEzvizError
|
||||
|
||||
from homeassistant.components.switch import (
|
||||
SwitchDeviceClass,
|
||||
|
@ -4,7 +4,7 @@ from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from pyezviz import HTTPError, PyEzvizError
|
||||
from pyezvizapi import HTTPError, PyEzvizError
|
||||
|
||||
from homeassistant.components.update import (
|
||||
UpdateDeviceClass,
|
||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -1967,7 +1967,7 @@ pyeverlights==0.1.0
|
||||
pyevilgenius==2.0.0
|
||||
|
||||
# homeassistant.components.ezviz
|
||||
pyezviz==0.2.1.2
|
||||
pyezvizapi==1.0.0.7
|
||||
|
||||
# homeassistant.components.fibaro
|
||||
pyfibaro==0.8.2
|
||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -1606,7 +1606,7 @@ pyeverlights==0.1.0
|
||||
pyevilgenius==2.0.0
|
||||
|
||||
# homeassistant.components.ezviz
|
||||
pyezviz==0.2.1.2
|
||||
pyezvizapi==1.0.0.7
|
||||
|
||||
# homeassistant.components.fibaro
|
||||
pyfibaro==0.8.2
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
from unittest.mock import AsyncMock
|
||||
|
||||
from pyezviz.exceptions import (
|
||||
from pyezvizapi.exceptions import (
|
||||
EzvizAuthVerificationCode,
|
||||
InvalidHost,
|
||||
InvalidURL,
|
||||
|
Reference in New Issue
Block a user