Skip to content

Commit

Permalink
iCloud3 v3.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
gcobb321 committed Feb 11, 2025
1 parent 8df8c94 commit df0e15d
Show file tree
Hide file tree
Showing 28 changed files with 1,276 additions and 677 deletions.
19 changes: 19 additions & 0 deletions custom_components/icloud3/Release Notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@
**iCloud3 v3 Documentation** - iCloud3 User Guide can be found [here](https://gcobb321.github.io/icloud3_v3_docs/#/)
**Migrating from v2.4.7_** - See [here](https://gcobb321.github.io/icloud3_v3_docs/#/chapters/3.1-migrating-v2-to-v3) for instructions on migrating from from an older version.

v3.1.5b1 Removed, Replaced with v3.1.5b2 [here](https://github.com/gcobb321/icloud3_v3/issues/399#issuecomment-2620099037)



### Release Notes - v3.1.5b3 (1/31/2025)
#### 🐛 Bug Fixes
- A location request was sent incorrectly to Apple when logging into or adding a new Apple Account. This caused an incorrect _Invalid Username/Password_ message to be displayed and communication with the Apple account stopped.
- The _Enter/Request Verification Code_ screen was not displaying correctly if there were no Apple accounts that needed to be verified or the Apple account was deleted.
- Waze History time/distance recalculation will no longer run again at midnight if it was run immediately. An update that is running can now be terminated.
- Fixed a problem creating a 'Server Error 500' loading the iCloud3 integration for the first time.

#### 🎉 Improvements and New Features
- Improved - Internet connections errors are now detected and monitored. iCloud3 will pause all tracking until the Internet is back up. A status message is displayed in the Event log and a message will be sent to an iCloud3 device using the Mobile App that Home Assistant is Offline.
- Improved - Renamed and reorganized the _Configure > Tracking Parameters_ screen and _Field Formats & Event Log Parmaeters_ screens.
- New - The _Picture Directory Filter_ can now be updated from the _Update Device_ screen _Picture Selection List_.
- New - If no picture is selected for the Device (=None), the Device's icon that will be displayed can now be selected from Home Assistant's 'mdi:' icon image list (default=mdi:account).



3.1.4.3
### Release Notes - v3.1.4.3 (1/18/2025)
#### General Updates
Expand Down
24 changes: 8 additions & 16 deletions custom_components/icloud3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
# has set up the integration
start_ic3.initialize_directory_filenames()
await Gb.hass.async_add_executor_job(
config_file.load_storage_icloud3_configuration_file)
# await config_file.async_load_storage_icloud3_configuration_file()
config_file.load_icloud3_configuration_file)
# await config_file.async_load_icloud3_configuration_file()

if Gb.conf_profile[CONF_VERSION] == 1:
Gb.HALogger.warning(f"Starting iCloud3 v{VERSION}{VERSION_BETA} > "
Expand Down Expand Up @@ -135,16 +135,11 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
Gb.entry_id = entry.entry_id
Gb.operating_mode = MODE_INTEGRATION
Gb.PyiCloud = None
ic3_device_tracker.get_ha_device_ids_from_device_registry(Gb.hass)

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_storage_icloud3_configuration_file)

await Gb.hass.async_add_executor_job( config_file.load_icloud3_configuration_file)
start_ic3.set_log_level(Gb.log_level)

# Setup iCloud Log File (icloud3.log)
await Gb.hass.async_add_executor_job(open_ic3log_file_init)

Gb.evlog_btnconfig_url = Gb.conf_profile[CONF_EVLOG_BTNCONFIG_URL].strip()
Expand All @@ -163,10 +158,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
return False

await async_get_ha_location_info(hass)

start_ic3.initialize_data_source_variables()
await Gb.hass.async_add_executor_job(
restore_state.load_storage_icloud3_restore_state_file)
await Gb.hass.async_add_executor_job(restore_state.load_icloud3_restore_state_file)


# config_file.count_lines_of_code(Gb.icloud3_directory)
Expand All @@ -183,10 +176,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
Gb.PyiCloudValidateAppleAcct = PyiCloudValidateAppleAcct()
Gb.username_valid_by_username = {}
if Gb.use_data_source_ICLOUD:
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)
# 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)

# set_up_default_area_id()

Expand Down
Loading

0 comments on commit df0e15d

Please sign in to comment.