Skip to content

Commit

Permalink
iCloud3 v3.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
gcobb321 committed Feb 22, 2025
1 parent 79ef26d commit 675d573
Show file tree
Hide file tree
Showing 21 changed files with 478 additions and 306 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

------

[![CurrentVersion](https://img.shields.io/badge/Current_Version-v3.1.4-blue.svg)](https://github.com/gcobb321/icloud3_v3) [![Type](https://img.shields.io/badge/Type-Custom_Component-orange.svg)](https://github.com/gcobb321/icloud3_v3) [![HACS](https://img.shields.io/badge/HACS-Custom_Repository-orange.svg)](https://github.com/gcobb321/icloud3_v3)
[![CurrentVersion](https://img.shields.io/badge/Current_Version-v3.1.6-blue.svg)](https://github.com/gcobb321/icloud3_v3) [![Type](https://img.shields.io/badge/Type-Custom_Component-orange.svg)](https://github.com/gcobb321/icloud3_v3) [![HACS](https://img.shields.io/badge/HACS-Custom_Repository-orange.svg)](https://github.com/gcobb321/icloud3_v3)

[![ProjectStage](https://img.shields.io/badge/Project_Stage-Development_Version-forestgreen.svg)](https://github/gcobb321/icloud3_v3) [![Released](https://img.shields.io/badge/Released-December,_2024-forestgreen.svg)](https://github.com/gcobb321/icloud3_v3)
[![ProjectStage](https://img.shields.io/badge/Project_Stage-Development_Version-forestgreen.svg)](https://github/gcobb321/icloud3_v3) [![Released](https://img.shields.io/badge/Released-February, 2025-forestgreen.svg)](https://github.com/gcobb321/icloud3_v3)



Expand Down
19 changes: 13 additions & 6 deletions custom_components/icloud3/Release Notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,23 @@ v3.1.5b1 Removed, Replaced with v3.1.5b2 [here](https://github.com/gcobb321/iclo



### Release Notes - v3.1.5.2
### Release Notes - v3.1.6
#### 🎉 Improvements and New Features
1. When the password is used to authenticate the Apple Account, Apple sends an email to the account owner that a login/authentication was done. An entry has been added to the Event Log when iCloud3 doe this. The authentication date/time (PST) in the Event Log message is, hopefully, the same as on the email.
1. When the password is used to authenticate the Apple Account, Apple sends an email to the account owner that a login/authentication was done. An entry has been added to the Event Log when iCloud3 doe this. The authentication date/time (PST) in the Event Log message is, hopefully, the same as on the email. View on _Event Log > Show Startup log, Errors & Alerts_. Note: The times the _Event Log_ and email may not match.
2. The Apple Account username is now obscured in the iCloud3 log files.
3. The _Data Sources_ ... screen name was changed to _Apple Accounts & Mobile App_ for clarity.
4. Formatting improvements to the _Apple Accounts & Mobile App screen.
5. The Apple Server Location can now be selected by Apple Account (Applies to China users).
6. Messages are no longer sent to a phone when there is an Internet Connection error. Phones were being hammered with messages when the Internet connection would cycle between an offline and online state.
7. When Pausing all tracking, the time paused and age is now displayed in the Event Log.

#### 🐛 Bug Fixes
1. When iCloud3 started and was setting up the tracked devices, if the Mobile App device parameter was set to 'ScanFor' a device and that device was not found in the list of Mobile App devices, an error was aborting the setup process. This resulted in no Apple account or Mobile App devices being set up correctly. This has been fixed.
2. Fixed several problems handling the Mobile App device when 'ScanFor:' was selected for a device on the _Update iCloud3 Device_ screen.
3. Fixed issues dealing with authenticating Apple Accounts in China where the '.cn' url suffix was not being set properly in all cases.

1. When iCloud3 started and was setting up the tracked devices, if the Mobile App device parameter was set to 'ScanFor a device' and that device was not found in the list of Mobile App devices, an error was aborting the setup process. This resulted in no Apple account or Mobile App devices being set up correctly. This has been fixed.
2. Fixed some problems with accessing Apple Servers in China where the .cn URL suffix was not being appended correctly.
3. Fixed a problem displaying all of the Apple Accounts when multiple Apple Accounts were set up and the first one was not logged into.

#### ☕ Buy me a Coffee
1. Thanks to all that bought me a coffee. I appreciate it.



Expand Down
15 changes: 11 additions & 4 deletions custom_components/icloud3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)

from .global_variables import GlobalVariables as Gb
from .helpers.messaging import (_evlog, _log, open_ic3log_file_init, post_monitor_msg,
from .helpers.messaging import (_evlog, _log, open_ic3log_file_init, open_ic3log_file, post_monitor_msg,
post_evlog_greenbar_msg, post_startup_alert,
log_info_msg, log_debug_msg, log_error_msg,
log_exception_HA, log_exception)
from .helpers.time_util import (time_now_secs, )
from .helpers.time_util import (time_now_secs, calculate_time_zone_offset, )
from .helpers.file_io import (async_make_directory, async_directory_exists, async_copy_file,
read_json_file, save_json_file,
async_rename_file, async_delete_directory,
Expand Down Expand Up @@ -138,10 +138,15 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):

ic3_device_tracker.get_ha_device_ids_from_device_registry(Gb.hass)
start_ic3.initialize_directory_filenames()

await Gb.hass.async_add_executor_job( config_file.load_icloud3_configuration_file)

start_ic3.set_log_level(Gb.log_level)
await Gb.hass.async_add_executor_job(open_ic3log_file_init)

# new_log_file = Gb.log_debug_flag
# await Gb.hass.async_add_executor_job(open_ic3log_file, new_log_file)

Gb.evlog_btnconfig_url = Gb.conf_profile[CONF_EVLOG_BTNCONFIG_URL].strip()
Gb.evlog_version = Gb.conf_profile['event_log_version']
Gb.EvLog = event_log.EventLog(Gb.hass)
Expand Down Expand Up @@ -173,12 +178,14 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Gb.EvLog.display_user_message(f"Starting {ICLOUD3_VERSION_MSG}")
calculate_time_zone_offset()
Gb.PyiCloudValidateAppleAcct = PyiCloudValidateAppleAcct()
Gb.username_valid_by_username = {}
if Gb.use_data_source_ICLOUD:
# v3.0 --> v3.1 file location change
await Gb.hass.async_add_executor_job(move_icloud_cookies_to_icloud3_apple_acct)
await Gb.hass.async_add_executor_job(pyicloud_ic3_interface.check_all_apple_accts_valid_upw)
if Gb.conf_tracking['setup_icloud_session_early']:
await Gb.hass.async_add_executor_job(move_icloud_cookies_to_icloud3_apple_acct)
await Gb.hass.async_add_executor_job(pyicloud_ic3_interface.check_all_apple_accts_valid_upw)

# set_up_default_area_id()

Expand Down
Loading

0 comments on commit 675d573

Please sign in to comment.