Skip to content

Commit

Permalink
iCloud3 v3.0.rc6
Browse files Browse the repository at this point in the history
  • Loading branch information
gcobb321 committed Oct 10, 2023
1 parent 8e130af commit 44e1362
Show file tree
Hide file tree
Showing 19 changed files with 449 additions and 359 deletions.
13 changes: 13 additions & 0 deletions custom_components/icloud3/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
rc6 - Release Candidate 6 (10/7/2023)
...............................
1. Bug Fix - Fixed the error causing the "AttributeError: 'iCloud3_Device' object has no attribute 'interval_secs' message at line 680, in determine_interval_after_error" error.
2. China Users - Added an option to the Configure Settings - iCloud Account & iOS App Data Sources screen to enable the '.cn. Apple Web Server URL address suffix.
3. Monitored Devices - The iOSApp state value is no longer displayed on the Event Log if it is different than the iCloud3 zone and it is earlier the last FamShr update time since it is old and is probably incorrect.
4. iCloud3 Version - The version that is currently running is now displayed in the Configure Settings menu screen and more clearly on Event Log messages during startup.
5. Battery - HA has changed the battery 'state class' internal value from 'battery' to 'measurement'.
6. Prerelease Version number - This has changed to Release Candidate number to better conform to HA standards. Version pr1.5 was a developer test version and not released.
7. Configure Setting - Made some minor menu text changes for consistency.



pr1.4
...............................
1. Bug Fix - Fixes a "type object 'GlobalVariables' has no attribute 'this_update_tine'" error. it should be '_time', not '_tine'
2. Fixed a problem adding the first device to a new iCloud3 installation that was generating a 'TypeError: 'NoneType' object is not callable -- Gb.async_add_entities_device_tracker(NewDeviceTrackers, True) error message.
3. Stationary zones - Stationary zones are now removed from HA Zones instead of moving them back to their 'base' location when all of the devices have exited the zone. Monitored devices will no longer create a stationary zone since they are not actually tracked.
4. Error handling - If a device goes offline for an extended period of time (in Airplane mode) the longest interval was changed from 2-hours to 1-hour. An iOS App Location Request will be made when the interval time changes to see if the device is now available for tracking.
5. China - Fixed a problem updating the Apple Web Server URL for China. This uses the HA Country Code or the Configuration File _icloud_server_endpoint_suffix: "cn"_ parameter to add _.cn_ to the https://www.icloud.com and https://setup.icloud.com URLs in the iCloud3-iCloud Account interface module.



Expand Down
18 changes: 9 additions & 9 deletions custom_components/icloud3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
config_file.load_storage_icloud3_configuration_file()

if Gb.conf_profile[CONF_VERSION] == 1:
_HA_LOGGER.info(f"Initializing iCloud3 {VERSION} - Remove Platform: iCloud3 statement")
_HA_LOGGER.info(f"Initializing iCloud3 v{VERSION} - Remove Platform: iCloud3 statement")

except Exception as err:
log_exception(err)
Expand All @@ -91,9 +91,9 @@ async def start_icloud3(event=None):
icloud3_started = await Gb.hass.async_add_executor_job(Gb.iCloud3.start_icloud3)

if icloud3_started:
log_info_msg(f"iCloud3 {Gb.version} started")
log_info_msg(f"iCloud3 v{Gb.version} started")
else:
log_error_msg(f"iCloud3 {Gb.version} Initialization Failed")
log_error_msg(f"iCloud3 v{Gb.version} Initialization Failed")

#<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><><><><><><><><><>
#
Expand Down Expand Up @@ -140,8 +140,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):

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)
log_info_msg(f"Setting up iCloud3 {VERSION} - Using Integration method")
Gb.EvLog = event_log.EventLog(Gb.hass)
log_info_msg(f"Setting up iCloud3 v{VERSION} - Using Integration method")

Gb.start_icloud3_inprocess_flag = True

Expand Down Expand Up @@ -185,8 +185,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
# SETUP PROCESS TO START ICLOUD3
#
#<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Gb.EvLog.display_user_message('iCloud3 is Starting')
Gb.EvLog.post_event(f"{EVLOG_IC3_STARTING}Initializing iCloud3 v{Gb.version} > "
Gb.EvLog.display_user_message(f"Starting iCloud3 v{Gb.version}")
Gb.EvLog.post_event(f"{EVLOG_IC3_STARTING}iCloud3 v{Gb.version} > Starting, "
f"{dt_util.now().strftime('%A, %b %d')}")

Gb.iCloud3 = iCloud3()
Expand All @@ -210,9 +210,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
icloud3_started = await Gb.hass.async_add_executor_job(Gb.iCloud3.start_icloud3)

if icloud3_started:
log_info_msg(f"iCloud3 {Gb.version} started")
log_info_msg(f"iCloud3 v{Gb.version} started")
else:
log_error_msg(f"iCloud3 {Gb.version} Initialization Failed")
log_error_msg(f"iCloud3 v{Gb.version} Initialization Failed")

return True

Expand Down
Loading

0 comments on commit 44e1362

Please sign in to comment.