Skip to content
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

CalDAV - SyntaxWarning: invalid escape sequence #115697

Open
rgerbranda opened this issue Apr 16, 2024 · 7 comments
Open

CalDAV - SyntaxWarning: invalid escape sequence #115697

rgerbranda opened this issue Apr 16, 2024 · 7 comments

Comments

@rgerbranda
Copy link

The problem

Since a recent update I have SyntaxWarnings in the logs, probably caused by CalDAV component

What version of Home Assistant Core has the issue?

core-2024.4.3

What was the last working version of Home Assistant Core?

core-2024.3

What type of installation are you running?

Home Assistant Container

Integration causing the issue

CalDAV

Link to integration documentation on our website

https://www.home-assistant.io/integrations/caldav/

Diagnostics information

No response

Example YAML snippet

calendar:
  - platform: caldav
    username: !secret apple_id
    password: !secret apple_password
    url: https://caldav.icloud.com
    calendars:
      - "Private"
      - "Birthdays"

Anything in the logs that might be useful for us?

2024-04-16 11:19:36.733 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/vobject/base.py:736: SyntaxWarning: invalid escape sequence '\-'
  patterns['name'] = '[a-zA-Z0-9\-_]+'

2024-04-16 11:19:36.743 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/vobject/base.py:1219: SyntaxWarning: invalid escape sequence '\;'
  s = s.replace("\\", "\\\\").replace(";", "\;").replace(",", "\,")

2024-04-16 11:19:36.744 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/vobject/base.py:1219: SyntaxWarning: invalid escape sequence '\,'
  s = s.replace("\\", "\\\\").replace(";", "\;").replace(",", "\,")

Additional information

No response

@home-assistant
Copy link

@jackwilsdon
Copy link
Contributor

jackwilsdon commented May 15, 2024

Seems like this has already been fixed in vobject: py-vobject/vobject#21

But there hasn't been a release since this fix (so caldav hasn't pulled it in yet either).

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@rwjack
Copy link

rwjack commented Aug 13, 2024 via email

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@jackwilsdon
Copy link
Contributor

jackwilsdon commented Nov 11, 2024

vobject v0.9.8 has been released containing the fix and caldav doesn't depend on a specific version of it, so this might already be fixed? @rgerbranda are you still seeing this?

@rgerbranda
Copy link
Author

I did not see the warning anymore, so problem seems to be solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants