Skip to content

Commit

Permalink
Stop pinging basestation on essential cameras. (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
twrecked authored Oct 2, 2024
1 parent 1b823cc commit b952374
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
3 changes: 3 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyaarlo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

_LOGGER = logging.getLogger("pyaarlo")

__version__ = "0.8.0.10"
__version__ = "0.8.0.11"


class PyArlo(object):
Expand Down
17 changes: 12 additions & 5 deletions pyaarlo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b952374

Please sign in to comment.