gcobb321 / icloud3

iCloud3 v3 - iCloud3 is an advanced iDevice tracker that uses Apple iCloud account and HA Companion App data for presence detection and location based automations.
MIT License
581 stars 54 forks source link

I hope the plug-in can support custom ICloud domain names so that it can be used in China #229

Closed Seifon closed 2 years ago

Seifon commented 2 years ago

I hope the plug-in can support custom ICloud domain names so that it can be used in China

Domain used in China:

/confg/custom_components/icloud3/pyicloud_ic3.py

AUTH_ENDPOINT = "https://idmsa.apple.com/appleauth/auth"
HOME_ENDPOINT = "https://www.icloud.com.cn"
SETUP_ENDPOINT = "https://setup.icloud.com.cn/setup/ws/1"
gcobb321 commented 2 years ago

iCloud3 v3 determines your location and automatically adds the cn suffix to the HOME_ENDPOINT In pyicloud_ic3.py