From f61cc1084b5f9c07455ba9d5593b07d93962dece Mon Sep 17 00:00:00 2001 From: Steve Herrell <47094394+twrecked@users.noreply.github.com> Date: Sun, 8 Dec 2024 15:06:04 -0500 Subject: [PATCH] Camera update (#1024) * Fix camera issue. Due to new API. * Add aiofiles to requirements. * Bump revision. --- changelog | 3 +++ custom_components/aarlo/__init__.py | 2 +- custom_components/aarlo/camera.py | 3 ++- custom_components/aarlo/manifest.json | 5 +++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/changelog b/changelog index 93576a5..0bdfe0f 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,7 @@ aarlo +0.8.1.11 + Fix issue caused by new camera API + Add aiofiles as requirement 0.8.1.10 Add French translations Thanks @SocrateMobile 0.8.1.9 diff --git a/custom_components/aarlo/__init__.py b/custom_components/aarlo/__init__.py index ae6c079..f59b92b 100644 --- a/custom_components/aarlo/__init__.py +++ b/custom_components/aarlo/__init__.py @@ -53,7 +53,7 @@ from .cfg import BlendedCfg, PyaarloCfg -__version__ = "0.8.1.10" +__version__ = "0.8.1.11" _LOGGER = logging.getLogger(__name__) diff --git a/custom_components/aarlo/camera.py b/custom_components/aarlo/camera.py index 63d9c66..03b044f 100644 --- a/custom_components/aarlo/camera.py +++ b/custom_components/aarlo/camera.py @@ -322,7 +322,8 @@ def __init__(self, camera, aarlo_config, hass): _LOGGER.debug(f"camera-entity-id={self.entity_id}") self._attr_brand = COMPONENT_BRAND - self._attr_frontend_stream_type = StreamType.HLS + # removed for issue #1019 + # self._attr_frontend_stream_type = StreamType.HLS self._attr_is_on = camera.is_on self._attr_model = camera.model_id self._attr_should_poll = False diff --git a/custom_components/aarlo/manifest.json b/custom_components/aarlo/manifest.json index 26d058b..4e9d512 100644 --- a/custom_components/aarlo/manifest.json +++ b/custom_components/aarlo/manifest.json @@ -13,7 +13,8 @@ "issue_tracker": "https://github.com/twrecked/hass-aarlo/issues", "requirements": [ "unidecode", - "pyaarlo>=0.8.0.12" + "pyaarlo>=0.8.0.12", + "aiofiles" ], - "version": "0.8.1.10" + "version": "0.8.1.11" }