Skip to content

Commit

Permalink
iCloud3 v3.5.8 (9/8/2024(
Browse files Browse the repository at this point in the history
  • Loading branch information
gcobb321 committed Sep 8, 2024
1 parent 1d1e144 commit a1810eb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions custom_components/icloud3/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
**Installing for the first time_** - See [here](https://gcobb321.github.io/icloud3_v3_docs/#/chapters/3.2-installing-and-configuring) for instructions on installing as a New Installation
**iCloud3 v3 Documentation** - iCloud3 User Guide can be found [here](https://gcobb321.github.io/icloud3_v3_docs/#/)

3.0.5.8
.......................
### Change Log - v3.0.5.8 (9/8/2024)
1. CONFIGURATION - UPDATE DEVICES (Fixed) - An error would occur on the _Configure > Update Devices_ screen if the Mobile App Integration had not been set up or if the name had not been set up on one of the Mobile App devices was missing. This occured predominately when adding the first device to iCloud3.
2. DEVICE_TRACKER ATTRIBUTES (Update) - There are 3 sections on thedevice attribute's list to group similar attributes together. A title has been added to the section's dividing lines to prevent problems with other AddOns that use the attribute's name.


3.0.5.7
.......................
Expand Down
4 changes: 2 additions & 2 deletions custom_components/icloud3/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -3452,7 +3452,7 @@ async def _build_mobapp_entity_list(self):
f"({slugify(self._mobapp_fname(entity_attrs))})")
for dev_trkr_entity, entity_attrs in mobapp_entity_data.items()}
except:
pass
search_mobapp_devices = {}

self.mobapp_list_text_by_entity_id.update(sort_dict_by_values(mobapp_devices))
self.mobapp_list_text_by_entity_id.update(sort_dict_by_values(search_mobapp_devices))
Expand All @@ -3462,7 +3462,7 @@ async def _build_mobapp_entity_list(self):
#-------------------------------------------------------------------------------------------
@staticmethod
def _mobapp_fname(entity_attrs):
return entity_attrs['name'] or entity_attrs['original_name']
return entity_attrs.get('name') or entity_attrs.get('original_name') or 'Unknown'

#-------------------------------------------------------------------------------------------
def _prepare_device_selection_list(self):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/icloud3/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
#<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

VERSION = '3.0.5.7'
VERSION = '3.0.5.8'
VERSION_BETA = ''
#-----------------------------------------
DOMAIN = 'icloud3'
Expand Down
8 changes: 4 additions & 4 deletions custom_components/icloud3/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ def _get_extra_attributes(self):
extra_attrs[LOCATED] = self._get_sensor_value(LAST_LOCATED_DATETIME)
alert = self._get_sensor_value(ALERT)
extra_attrs[ALERT] = alert if alert != BLANK_SENSOR_FIELD else ''
extra_attrs[f"{'-'*40}"] = f"{'-'*35}"

extra_attrs[f"{'-'*5} DEVICE CONFIGURATION {'-'*20}"] = ''
extra_attrs['integration'] = ICLOUD3
extra_attrs[NAME] = self._get_sensor_value(NAME)
extra_attrs[PICTURE] = self._get_sensor_value(PICTURE)
Expand All @@ -372,8 +373,7 @@ def _get_extra_attributes(self):
extra_attrs['primary_home_zone'] = self.extra_attrs_primary_home_zone
extra_attrs['away_time_zone_offset'] = self.extra_attrs_away_time_zone_offset

extra_attrs[f"{'-'*41}"] = f"{'-'*35}"
# extra_attrs['data_source'] = f"{self._get_sensor_value(LOCATION_SOURCE)}"
extra_attrs[f"{'-'*5} LOCATION INFO {'-'*20}"] = self._get_sensor_value(LAST_UPDATE_DATETIME)
extra_attrs[DEVICE_STATUS] = self._get_sensor_value(DEVICE_STATUS)
extra_attrs[LOCATION_SOURCE]= f"{self._get_sensor_value(LOCATION_SOURCE)}"
extra_attrs[TRIGGER] = self._get_sensor_value(TRIGGER)
Expand All @@ -391,7 +391,7 @@ def _get_extra_attributes(self):
extra_attrs[NEXT_UPDATE] = self._get_sensor_value(NEXT_UPDATE_DATETIME)
extra_attrs['last_timestamp']= f"{self._get_sensor_value(LAST_LOCATED_SECS)}"

extra_attrs[f"{'-'*42}"] = f"{'-'*35}"
xtra_attrs[f"{'-'*5} ICLOUD3 CONFIGURATION {'-'*19}"] = ''
extra_attrs['icloud3_devices'] = ', '.join(Gb.Devices_by_devicename.keys())
extra_attrs['icloud3_version'] = f"v{Gb.version}"
extra_attrs['event_log_version'] = f"v{Gb.version_evlog}"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/icloud3/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"issue_tracker": "https://github.com/gcobb321/icloud3_v3/issues",
"loggers": ["icloud3"],
"requirements": [],
"version": "3.0.5.7"
"version": "3.0.5.8"
}

0 comments on commit a1810eb

Please sign in to comment.