Skip to content

Commit

Permalink
iCloud3 v3.0.5
Browse files Browse the repository at this point in the history
Remove _trace stmts
  • Loading branch information
gcobb321 committed May 19, 2024
1 parent 7fcc4e7 commit 3cffb8e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions custom_components/icloud3/support/pyicloud_ic3.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,13 +719,11 @@ def _authenticate_with_password(self):
headers["X-Apple-ID-Session-Id"] = self.session_data.get("session_id")

try:
_trace('724')
response = self.Session.post(
f"{self.AUTH_ENDPOINT}/signin",
params={"isRememberMeEnabled": "true"},
data=json.dumps(data),
headers=headers,)
_trace('730')
data = response.json
log_debug_msg( f"Authenticate.authenticate_with_password > Successful")
return True
Expand Down Expand Up @@ -760,12 +758,10 @@ def _authenticate_with_password_service(self, service):
try:
log_debug_msg(f"Authenticating Service with Password, Service-{service}")

_trace('765')
self.Session.post(f"{self.SETUP_ENDPOINT}/accountLogin"
f"?clientBuildNumber=2021Project52&clientMasteringNumber=2021B29"
f"&clientId={self.client_id[5:]}",
data=json.dumps(data))
_trace('770')

log_debug_msg( f"Authenticate.authenticate_with_password_service > Successful")
return self._validate_token()
Expand Down Expand Up @@ -796,7 +792,6 @@ def _validate_token(self):
log_debug_msg("Checking session token validity")

try:
_trace('801')
response = self.Session.post("%s/validate" % self.SETUP_ENDPOINT, data="null")
self.data = response.json

Expand Down

0 comments on commit 3cffb8e

Please sign in to comment.