gcobb321 / icloud3_v3

iCloud3 v3, Development Version - This Repo/Version is used for development and testing of new and updated features. It is not the official release of iCloud3 v3, .
MIT License
169 stars 13 forks source link

Upgrade to Home Assistant 2024.2.1 causes SyntaxWarning in icloud3_v3 #270

Closed bakerkj closed 9 months ago

bakerkj commented 9 months ago

I recently upgraded to Home Assistant 2024.2.1. Upon doing so icloud3_v3 started producing the following warning:

2024-02-10 21:27:23.244 WARNING (MainThread) [py.warnings] /config/custom_components/icloud3/config_flow.py:187: SyntaxWarning: invalid escape sequence '\T'
  'inactive_to_track':        'TRACK ALL OR SELECTED ᐳ Change the \'Tracking Mode\' of all of the devices (or the selected devices) from \'Inactive\' to \Tracked\'',

This looks like a minor typo.

diff --git a/custom_components/icloud3/config_flow.py b/custom_components/icloud3/config_flow.py
index 56ab744..c6255c6 100644
--- a/custom_components/icloud3/config_flow.py
+++ b/custom_components/icloud3/config_flow.py
@@ -184,7 +184,7 @@ ACTION_LIST_ITEMS_KEY_TEXT = {
         'delete_icloud_mobapp_info':'CLEAR FAMSHR/MOBAPP INFO ᐳ Reset the FamShr/Mobile App seletion fields on all devices',
         'delete_device_cancel':     'CANCEL ᐳ Return to the Device List screen',

-        'inactive_to_track':        'TRACK ALL OR SELECTED ᐳ Change the \'Tracking Mode\' of all of the devices (or the selected devices) from \'Inactive\' to \Tracked\'',
+        'inactive_to_track':        'TRACK ALL OR SELECTED ᐳ Change the \'Tracking Mode\' of all of the devices (or the selected devices) from \'Inactive\' to \'Tracked\'',
         'inactive_keep_inactive':   'DO NOT TRACK, KEEP INACTIVE ᐳ None of these devices should be \'Tracked\' and should remain \'Inactive\'',

         'restart_ha':               'RESTART HOME ASSISTANT ᐳ Restart HA and reload iCloud3',

Thanks!

gcobb321 commented 9 months ago

That has been fixed in rc10.3 that I uploaded several hours ago. You can get it immediately by going to the GitHub releases page and downloading the icloud3.zip file or waiting for HACS to do the update tonight. You may also be able to refresh HACS by going to it, selecting the 3-dots in the upper right corner and refreshing the information.

bakerkj commented 9 months ago

@gcobb321 - Thank you!