mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Bumps pyunifiprotect to 3.6.0 (#72188)
This commit is contained in:
parent
9a3ecacf6b
commit
5c2c602686
@ -4,7 +4,7 @@ from __future__ import annotations
|
|||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Final
|
from typing import Final
|
||||||
|
|
||||||
from pyunifiprotect.data.base import ProtectAdoptableDeviceModel
|
from pyunifiprotect.data import ProtectAdoptableDeviceModel
|
||||||
|
|
||||||
from homeassistant.components.button import (
|
from homeassistant.components.button import (
|
||||||
ButtonDeviceClass,
|
ButtonDeviceClass,
|
||||||
|
@ -5,8 +5,7 @@ from collections.abc import Generator
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from pyunifiprotect.api import ProtectApiClient
|
from pyunifiprotect.api import ProtectApiClient
|
||||||
from pyunifiprotect.data import Camera as UFPCamera, StateType
|
from pyunifiprotect.data import Camera as UFPCamera, CameraChannel, StateType
|
||||||
from pyunifiprotect.data.devices import CameraChannel
|
|
||||||
|
|
||||||
from homeassistant.components.camera import Camera, CameraEntityFeature
|
from homeassistant.components.camera import Camera, CameraEntityFeature
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
@ -6,7 +6,7 @@ from typing import Any
|
|||||||
|
|
||||||
from aiohttp import CookieJar
|
from aiohttp import CookieJar
|
||||||
from pyunifiprotect import NotAuthorized, NvrError, ProtectApiClient
|
from pyunifiprotect import NotAuthorized, NvrError, ProtectApiClient
|
||||||
from pyunifiprotect.data.nvr import NVR
|
from pyunifiprotect.data import NVR
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"""Constant definitions for UniFi Protect Integration."""
|
"""Constant definitions for UniFi Protect Integration."""
|
||||||
|
|
||||||
from pyunifiprotect.data.types import ModelType, Version
|
from pyunifiprotect.data import ModelType, Version
|
||||||
|
|
||||||
from homeassistant.const import Platform
|
from homeassistant.const import Platform
|
||||||
|
|
||||||
|
@ -12,9 +12,10 @@ from pyunifiprotect.data import (
|
|||||||
Event,
|
Event,
|
||||||
Liveview,
|
Liveview,
|
||||||
ModelType,
|
ModelType,
|
||||||
|
ProtectAdoptableDeviceModel,
|
||||||
|
ProtectDeviceModel,
|
||||||
WSSubscriptionMessage,
|
WSSubscriptionMessage,
|
||||||
)
|
)
|
||||||
from pyunifiprotect.data.base import ProtectAdoptableDeviceModel, ProtectDeviceModel
|
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback
|
from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback
|
||||||
|
@ -6,6 +6,7 @@ import logging
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from pyunifiprotect.data import (
|
from pyunifiprotect.data import (
|
||||||
|
NVR,
|
||||||
Camera,
|
Camera,
|
||||||
Doorlock,
|
Doorlock,
|
||||||
Event,
|
Event,
|
||||||
@ -16,7 +17,6 @@ from pyunifiprotect.data import (
|
|||||||
StateType,
|
StateType,
|
||||||
Viewer,
|
Viewer,
|
||||||
)
|
)
|
||||||
from pyunifiprotect.data.nvr import NVR
|
|
||||||
|
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
import homeassistant.helpers.device_registry as dr
|
import homeassistant.helpers.device_registry as dr
|
||||||
|
@ -4,8 +4,7 @@ from __future__ import annotations
|
|||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from pyunifiprotect.data import Doorlock
|
from pyunifiprotect.data import Doorlock, LockStatusType
|
||||||
from pyunifiprotect.data.types import LockStatusType
|
|
||||||
|
|
||||||
from homeassistant.components.lock import LockEntity, LockEntityDescription
|
from homeassistant.components.lock import LockEntity, LockEntityDescription
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "UniFi Protect",
|
"name": "UniFi Protect",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/unifiprotect",
|
"documentation": "https://www.home-assistant.io/integrations/unifiprotect",
|
||||||
"requirements": ["pyunifiprotect==3.5.1", "unifi-discovery==1.1.3"],
|
"requirements": ["pyunifiprotect==3.6.0", "unifi-discovery==1.1.3"],
|
||||||
"dependencies": ["http"],
|
"dependencies": ["http"],
|
||||||
"codeowners": ["@briis", "@AngellusMortis", "@bdraco"],
|
"codeowners": ["@briis", "@AngellusMortis", "@bdraco"],
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
|
@ -4,7 +4,7 @@ from __future__ import annotations
|
|||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from pyunifiprotect.data.devices import Camera, Doorlock, Light
|
from pyunifiprotect.data import Camera, Doorlock, Light
|
||||||
|
|
||||||
from homeassistant.components.number import NumberEntity, NumberEntityDescription
|
from homeassistant.components.number import NumberEntity, NumberEntityDescription
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
@ -11,17 +11,18 @@ from typing import Any, Final
|
|||||||
from pyunifiprotect.api import ProtectApiClient
|
from pyunifiprotect.api import ProtectApiClient
|
||||||
from pyunifiprotect.data import (
|
from pyunifiprotect.data import (
|
||||||
Camera,
|
Camera,
|
||||||
|
ChimeType,
|
||||||
DoorbellMessageType,
|
DoorbellMessageType,
|
||||||
Doorlock,
|
Doorlock,
|
||||||
IRLEDMode,
|
IRLEDMode,
|
||||||
Light,
|
Light,
|
||||||
LightModeEnableType,
|
LightModeEnableType,
|
||||||
LightModeType,
|
LightModeType,
|
||||||
|
MountType,
|
||||||
RecordingMode,
|
RecordingMode,
|
||||||
Sensor,
|
Sensor,
|
||||||
Viewer,
|
Viewer,
|
||||||
)
|
)
|
||||||
from pyunifiprotect.data.types import ChimeType, MountType
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
||||||
|
@ -5,8 +5,12 @@ from dataclasses import dataclass
|
|||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from pyunifiprotect.data import Camera, RecordingMode, VideoMode
|
from pyunifiprotect.data import (
|
||||||
from pyunifiprotect.data.base import ProtectAdoptableDeviceModel
|
Camera,
|
||||||
|
ProtectAdoptableDeviceModel,
|
||||||
|
RecordingMode,
|
||||||
|
VideoMode,
|
||||||
|
)
|
||||||
|
|
||||||
from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription
|
from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
@ -1984,7 +1984,7 @@ pytrafikverket==0.2.0.1
|
|||||||
pyudev==0.22.0
|
pyudev==0.22.0
|
||||||
|
|
||||||
# homeassistant.components.unifiprotect
|
# homeassistant.components.unifiprotect
|
||||||
pyunifiprotect==3.5.1
|
pyunifiprotect==3.6.0
|
||||||
|
|
||||||
# homeassistant.components.uptimerobot
|
# homeassistant.components.uptimerobot
|
||||||
pyuptimerobot==22.2.0
|
pyuptimerobot==22.2.0
|
||||||
|
@ -1313,7 +1313,7 @@ pytrafikverket==0.2.0.1
|
|||||||
pyudev==0.22.0
|
pyudev==0.22.0
|
||||||
|
|
||||||
# homeassistant.components.unifiprotect
|
# homeassistant.components.unifiprotect
|
||||||
pyunifiprotect==3.5.1
|
pyunifiprotect==3.6.0
|
||||||
|
|
||||||
# homeassistant.components.uptimerobot
|
# homeassistant.components.uptimerobot
|
||||||
pyuptimerobot==22.2.0
|
pyuptimerobot==22.2.0
|
||||||
|
@ -17,11 +17,11 @@ from pyunifiprotect.data import (
|
|||||||
Doorlock,
|
Doorlock,
|
||||||
Light,
|
Light,
|
||||||
Liveview,
|
Liveview,
|
||||||
|
ProtectAdoptableDeviceModel,
|
||||||
Sensor,
|
Sensor,
|
||||||
Viewer,
|
Viewer,
|
||||||
WSSubscriptionMessage,
|
WSSubscriptionMessage,
|
||||||
)
|
)
|
||||||
from pyunifiprotect.data.base import ProtectAdoptableDeviceModel
|
|
||||||
|
|
||||||
from homeassistant.components.unifiprotect.const import DOMAIN
|
from homeassistant.components.unifiprotect.const import DOMAIN
|
||||||
from homeassistant.const import Platform
|
from homeassistant.const import Platform
|
||||||
|
@ -6,9 +6,7 @@ from copy import copy
|
|||||||
from unittest.mock import AsyncMock, Mock
|
from unittest.mock import AsyncMock, Mock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from pyunifiprotect.data import Camera as ProtectCamera
|
from pyunifiprotect.data import Camera as ProtectCamera, CameraChannel, StateType
|
||||||
from pyunifiprotect.data.devices import CameraChannel
|
|
||||||
from pyunifiprotect.data.types import StateType
|
|
||||||
from pyunifiprotect.exceptions import NvrError
|
from pyunifiprotect.exceptions import NvrError
|
||||||
|
|
||||||
from homeassistant.components.camera import (
|
from homeassistant.components.camera import (
|
||||||
|
@ -7,7 +7,7 @@ from unittest.mock import patch
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from pyunifiprotect import NotAuthorized, NvrError
|
from pyunifiprotect import NotAuthorized, NvrError
|
||||||
from pyunifiprotect.data.nvr import NVR
|
from pyunifiprotect.data import NVR
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.components import dhcp, ssdp
|
from homeassistant.components import dhcp, ssdp
|
||||||
|
@ -6,8 +6,7 @@ from copy import copy
|
|||||||
from unittest.mock import AsyncMock, Mock
|
from unittest.mock import AsyncMock, Mock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from pyunifiprotect.data import Doorlock
|
from pyunifiprotect.data import Doorlock, LockStatusType
|
||||||
from pyunifiprotect.data.types import LockStatusType
|
|
||||||
|
|
||||||
from homeassistant.components.unifiprotect.const import DEFAULT_ATTRIBUTION
|
from homeassistant.components.unifiprotect.const import DEFAULT_ATTRIBUTION
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
@ -7,16 +7,19 @@ from datetime import timedelta
|
|||||||
from unittest.mock import AsyncMock, Mock, patch
|
from unittest.mock import AsyncMock, Mock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from pyunifiprotect.data import Camera, Light
|
from pyunifiprotect.data import (
|
||||||
from pyunifiprotect.data.devices import LCDMessage, Viewer
|
Camera,
|
||||||
from pyunifiprotect.data.nvr import DoorbellMessage, Liveview
|
|
||||||
from pyunifiprotect.data.types import (
|
|
||||||
DoorbellMessageType,
|
DoorbellMessageType,
|
||||||
IRLEDMode,
|
IRLEDMode,
|
||||||
|
LCDMessage,
|
||||||
|
Light,
|
||||||
LightModeEnableType,
|
LightModeEnableType,
|
||||||
LightModeType,
|
LightModeType,
|
||||||
|
Liveview,
|
||||||
RecordingMode,
|
RecordingMode,
|
||||||
|
Viewer,
|
||||||
)
|
)
|
||||||
|
from pyunifiprotect.data.nvr import DoorbellMessage
|
||||||
|
|
||||||
from homeassistant.components.select.const import ATTR_OPTIONS
|
from homeassistant.components.select.const import ATTR_OPTIONS
|
||||||
from homeassistant.components.unifiprotect.const import (
|
from homeassistant.components.unifiprotect.const import (
|
||||||
|
@ -7,10 +7,16 @@ from datetime import datetime, timedelta
|
|||||||
from unittest.mock import AsyncMock, Mock
|
from unittest.mock import AsyncMock, Mock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from pyunifiprotect.data import NVR, Camera, Event, Sensor
|
from pyunifiprotect.data import (
|
||||||
|
NVR,
|
||||||
|
Camera,
|
||||||
|
Event,
|
||||||
|
EventType,
|
||||||
|
Sensor,
|
||||||
|
SmartDetectObjectType,
|
||||||
|
)
|
||||||
from pyunifiprotect.data.base import WifiConnectionState, WiredConnectionState
|
from pyunifiprotect.data.base import WifiConnectionState, WiredConnectionState
|
||||||
from pyunifiprotect.data.nvr import EventMetadata
|
from pyunifiprotect.data.nvr import EventMetadata
|
||||||
from pyunifiprotect.data.types import EventType, SmartDetectObjectType
|
|
||||||
|
|
||||||
from homeassistant.components.unifiprotect.const import (
|
from homeassistant.components.unifiprotect.const import (
|
||||||
ATTR_EVENT_SCORE,
|
ATTR_EVENT_SCORE,
|
||||||
|
@ -5,8 +5,13 @@ from __future__ import annotations
|
|||||||
from unittest.mock import AsyncMock, Mock
|
from unittest.mock import AsyncMock, Mock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from pyunifiprotect.data import Camera, Light
|
from pyunifiprotect.data import (
|
||||||
from pyunifiprotect.data.types import RecordingMode, SmartDetectObjectType, VideoMode
|
Camera,
|
||||||
|
Light,
|
||||||
|
RecordingMode,
|
||||||
|
SmartDetectObjectType,
|
||||||
|
VideoMode,
|
||||||
|
)
|
||||||
|
|
||||||
from homeassistant.components.unifiprotect.const import DEFAULT_ATTRIBUTION
|
from homeassistant.components.unifiprotect.const import DEFAULT_ATTRIBUTION
|
||||||
from homeassistant.components.unifiprotect.switch import (
|
from homeassistant.components.unifiprotect.switch import (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user