mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Move onvif base entity to separate module (#126128)
This commit is contained in:
@@ -14,9 +14,9 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.restore_state import RestoreEntity
|
||||
from homeassistant.util.enum import try_parse_enum
|
||||
|
||||
from .base import ONVIFBaseEntity
|
||||
from .const import DOMAIN
|
||||
from .device import ONVIFDevice
|
||||
from .entity import ONVIFBaseEntity
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
|
@@ -6,9 +6,9 @@ from homeassistant.const import EntityCategory
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from .base import ONVIFBaseEntity
|
||||
from .const import DOMAIN
|
||||
from .device import ONVIFDevice
|
||||
from .entity import ONVIFBaseEntity
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
|
@@ -24,7 +24,6 @@ from homeassistant.helpers import config_validation as cv, entity_platform
|
||||
from homeassistant.helpers.aiohttp_client import async_aiohttp_proxy_stream
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from .base import ONVIFBaseEntity
|
||||
from .const import (
|
||||
ABSOLUTE_MOVE,
|
||||
ATTR_CONTINUOUS_DURATION,
|
||||
@@ -51,6 +50,7 @@ from .const import (
|
||||
ZOOM_OUT,
|
||||
)
|
||||
from .device import ONVIFDevice
|
||||
from .entity import ONVIFBaseEntity
|
||||
from .models import Profile
|
||||
|
||||
|
||||
|
@@ -13,9 +13,9 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.typing import StateType
|
||||
from homeassistant.util.enum import try_parse_enum
|
||||
|
||||
from .base import ONVIFBaseEntity
|
||||
from .const import DOMAIN
|
||||
from .device import ONVIFDevice
|
||||
from .entity import ONVIFBaseEntity
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
|
@@ -11,9 +11,9 @@ from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from .base import ONVIFBaseEntity
|
||||
from .const import DOMAIN
|
||||
from .device import ONVIFDevice
|
||||
from .entity import ONVIFBaseEntity
|
||||
from .models import Profile
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user