-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxWarning: invalid escape sequence '\s' #411
Comments
Good day Gary. Unfortunately I have the same error, running icloud v3.1.4.2b2 and HA 2024.12.5. The problem occurred the first time yesterday at 20:51:21. Best regards and a happy new year,
|
Ignore it. There is a character in a text field from the entity register that it’s being decoded incorrectly. I’ll try to add a test for it in the next update. |
Hard to ignore since icloud3 isn’t working. |
OK. My mistake. I thought it doesn't work but it does. But unfortunately I got new entity ids with _2. I didn't do anything but suddenly my dashboard had errors due to the "new" entities. |
@Friedi1970 HA adds the _2 if it’s internal tables think iCloud3 is already running when it starts up. I’m working on that now and can detect when HA does creates them, can rename it back to the correct one. I think the solution will be detect it, delete all sensors from the registry and set them up again. It should be simple to clear the tables but I need to find the hook HA is using to do it. I’ll send you an updated patch module tomorrow to see if it fixes the \s issue without breaking anything. |
@Friedi1970 Unzip the following zip file into the icloud3\helpers directory and restart HA. |
@gcobb321 I updated and no errors so far :) Thanks so much! |
Excellent. I finally got the error message and it appears it was a Python compiler message, not code that was running. When I got it, the error was pointing to code that was commented out. I deleted that code and the message went away. |
Fixed in v3.1.4.4 |
I am running iCloud3 v3.1.4.1 and this error appears in the Home Assist system log when I restart Home Assistant:
Logger: py.warnings
Source: custom_components/icloud3/helpers/entity_io.py:259
integration: iCloud3 v3: iDevice Tracker (documentation, issues)
First occurred: 5:47:23 PM (3 occurrences)
Last logged: 5:47:23 PM
:1: SyntaxWarning: invalid escape sequence '\s'
The text was updated successfully, but these errors were encountered: