Skip to content

Commit

Permalink
Fix Arlo/Cloudflare handling. (#784)
Browse files Browse the repository at this point in the history
Again...
  • Loading branch information
twrecked authored Aug 3, 2023
1 parent 3393714 commit 0c396fc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
aarlo/pyaarlo
0.7.4b19:
Fix for Arlo/CF issues...
0.7.4b18:
Fix schema after playing catchup...
0.7.4b17:
Expand Down
4 changes: 2 additions & 2 deletions custom_components.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"aarlo": {
"version": "0.7.4b18",
"version": "0.7.4b19",
"local_location": "/custom_components/aarlo/__init__.py",
"remote_location": "https://raw.githubusercontent.com/twrecked/hass-aarlo/master/custom_components/aarlo/__init__.py",
"visit_repo": "https://github.com/twrecked/hass-aarlo",
Expand All @@ -18,7 +18,7 @@
]
},
"pyaarlo": {
"version": "0.7.4b18",
"version": "0.7.4b19",
"local_location": "/custom_components/aarlo/pyaarlo/__init__.py",
"remote_location": "https://raw.githubusercontent.com/twrecked/hass-aarlo/master/custom_components/aarlo/pyaarlo/__init__.py",
"visit_repo": "https://github.com/twrecked/hass-aarlo",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/aarlo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
SIREN_STATE_KEY
)

__version__ = "0.7.4b18"
__version__ = "0.7.4b19"

_LOGGER = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion custom_components/aarlo/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"iot_class": "cloud_push",
"issue_tracker": "https://github.com/twrecked/hass-aarlo/issues",
"requirements": ["unidecode","cloudscraper>=1.2.71", "paho-mqtt"],
"version": "0.7.4b18"
"version": "0.7.4b19"
}
2 changes: 1 addition & 1 deletion custom_components/aarlo/pyaarlo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

_LOGGER = logging.getLogger("pyaarlo")

__version__ = "0.7.4b18"
__version__ = "0.7.4b19"


class PyArlo(object):
Expand Down
4 changes: 2 additions & 2 deletions custom_components/aarlo/pyaarlo/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def _auth_headers(self):
# "Sec-Fetch-Dest": "empty",
# "Sec-Fetch-Mode": "cors",
# "Sec-Fetch-Site": "same-site",
"Source": "arloCamWeb",
# "Source": "arloCamWeb",
"User-Agent": self._user_agent,
"X-User-Device-Automation-name": "QlJPV1NFUg==",
"X-User-Device-Id": self._user_device_id,
Expand Down Expand Up @@ -851,7 +851,7 @@ def _login(self):
# If token looks invalid we'll try the whole process.
get_new_session = days_until(self._expires_in) < 2
if get_new_session:
self._session = cloudscraper.create_scraper()
self._session = cloudscraper.create_scraper(ecdhCurve='secp384r1')
self._arlo.debug("oldish session, getting a new one")
if not self._auth():
return False
Expand Down

0 comments on commit 0c396fc

Please sign in to comment.