From b9523748ce275cd4135b6fb327d8a90a7d19f475 Mon Sep 17 00:00:00 2001 From: Steve Herrell <47094394+twrecked@users.noreply.github.com> Date: Wed, 2 Oct 2024 08:19:11 -0400 Subject: [PATCH] Stop pinging basestation on essential cameras. (#163) --- changelog | 3 +++ pyaarlo/__init__.py | 2 +- pyaarlo/base.py | 17 ++++++++++++----- setup.py | 2 +- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/changelog b/changelog index d887783..1e37ac7 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,6 @@ +0.8.0.11 + Fix ping issue for new cameras. The code was creating a basestation + and pinging it. 0.8.0.10 Added some missing cameras. Essential Indoor Gen2 HD diff --git a/pyaarlo/__init__.py b/pyaarlo/__init__.py index 3c9cc53..5f606bd 100644 --- a/pyaarlo/__init__.py +++ b/pyaarlo/__init__.py @@ -52,7 +52,7 @@ _LOGGER = logging.getLogger("pyaarlo") -__version__ = "0.8.0.10" +__version__ = "0.8.0.11" class PyArlo(object): diff --git a/pyaarlo/base.py b/pyaarlo/base.py index be7adb6..b59f3a8 100644 --- a/pyaarlo/base.py +++ b/pyaarlo/base.py @@ -18,24 +18,27 @@ MODE_NAME_TO_ID_KEY, MODE_UPDATE_INTERVAL, MODEL_BABY, + MODEL_ESSENTIAL_OUTDOOR_GEN2_2K, + MODEL_ESSENTIAL_OUTDOOR_GEN2_HD, MODEL_ESSENTIAL_SPOTLIGHT, + MODEL_ESSENTIAL_VIDEO_DOORBELL, + MODEL_ESSENTIAL_XL_OUTDOOR_GEN2_2K, + MODEL_ESSENTIAL_XL_OUTDOOR_GEN2_HD, MODEL_ESSENTIAL_XL_SPOTLIGHT, MODEL_GO, - MODEL_HUB, MODEL_PRO_3_FLOODLIGHT, MODEL_PRO_4, MODEL_PRO_5, MODEL_WIRED_VIDEO_DOORBELL, - MODEL_WIRED_VIDEO_DOORBELL_GEN2_HD, MODEL_WIRED_VIDEO_DOORBELL_GEN2_2K, - MODEL_ESSENTIAL_VIDEO_DOORBELL, + MODEL_WIRED_VIDEO_DOORBELL_GEN2_HD, PING_CAPABILITY, RESOURCE_CAPABILITY, RESTART_PATH, SCHEDULE_KEY, SIREN_STATE_KEY, TEMPERATURE_KEY, - TIMEZONE_KEY + TIMEZONE_KEY, ) from .device import ArloDevice from .util import time_to_arlotime @@ -567,9 +570,13 @@ def has_capability(self, cap): # Don't ping these devices ever. if self.model_id.startswith(( + MODEL_ESSENTIAL_OUTDOOR_GEN2_2K, + MODEL_ESSENTIAL_OUTDOOR_GEN2_HD, MODEL_ESSENTIAL_SPOTLIGHT, - MODEL_ESSENTIAL_XL_SPOTLIGHT, MODEL_ESSENTIAL_VIDEO_DOORBELL, + MODEL_ESSENTIAL_XL_OUTDOOR_GEN2_2K, + MODEL_ESSENTIAL_XL_OUTDOOR_GEN2_HD, + MODEL_ESSENTIAL_XL_SPOTLIGHT, MODEL_PRO_3_FLOODLIGHT, MODEL_PRO_4, MODEL_PRO_5, diff --git a/setup.py b/setup.py index 45ec684..4db7758 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ def readme(): setup( name='pyaarlo', - version='0.8.0.10', + version='0.8.0.11', packages=['pyaarlo'], python_requires='>=3.7',