home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.72k stars 30.84k forks source link

WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/device.py:34: SyntaxWarning: invalid escape sequence '\s' #119760

Closed yarafie closed 5 months ago

yarafie commented 5 months ago

The problem

Getting the below Warningd

2024-06-16 05:52:59.633 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/device.py:34: SyntaxWarning: invalid escape sequence '\s' INSTALL_RESULT_PATTERN = "(Success|Failure|Error)\s?(.)" 2024-06-16 05:52:59.634 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/command/transport/init.py:95: SyntaxWarning: invalid escape sequence '[' result_pattern = "^[([\s\S]?)]: [([\s\S]?)]\r?$" 2024-06-16 05:52:59.639 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/utils.py:35: SyntaxWarning: invalid escape sequence '\s' pattern = "ACTIVITY\s([\w.]+)/([\w.]+)\s[\w\d]+\spid=([\d]+)" 2024-06-16 05:52:59.639 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/utils.py:48: SyntaxWarning: invalid escape sequence '\s' total_meminfo_re = re.compile('\sTOTAL\s(?P\d+)' 2024-06-16 05:52:59.639 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/utils.py:49: SyntaxWarning: invalid escape sequence '\s' '\s(?P\d+)' 2024-06-16 05:52:59.639 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/utils.py:50: SyntaxWarning: invalid escape sequence '\s' '\s(?P\d+)' 2024-06-16 05:52:59.639 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/utils.py:51: SyntaxWarning: invalid escape sequence '\s' '\s(?P\d+)' 2024-06-16 05:52:59.639 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/utils.py:52: SyntaxWarning: invalid escape sequence '\s' '\s(?P\d+)' 2024-06-16 05:52:59.639 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/utils.py:53: SyntaxWarning: invalid escape sequence '\s' '\s(?P\d+)' 2024-06-16 05:52:59.639 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/utils.py:54: SyntaxWarning: invalid escape sequence '\s' '\s*(?P\d+)') 2024-06-16 05:52:59.639 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/utils.py:85: SyntaxWarning: invalid escape sequence '\d' pattern = "userId=([\d]+)" 2024-06-16 05:52:59.639 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/utils.py:102: SyntaxWarning: invalid escape sequence '\d' pattern = "versionName=([\d.]+)" 2024-06-16 05:52:59.642 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/wm.py:12: SyntaxWarning: invalid escape sequence '\s' SIZE_RE = 'Physical size:\s([\d]+)x([\d]+)' 2024-06-16 05:52:59.643 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/traffic.py:36: SyntaxWarning: invalid escape sequence '\d' pattern = "userId=([\d]+)" 2024-06-16 05:52:59.645 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/ppadb/plugins/device/cpustat.py:90: SyntaxWarning: invalid escape sequence '\s' "cpu\s+([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s")

What version of Home Assistant Core has the issue?

core-2024.6.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 5 months ago

Hey there @jefflirion, @ollo69, mind taking a look at this issue as it has been labeled with an integration (androidtv) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `androidtv` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign androidtv` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


androidtv documentation androidtv source (message by IssueLinks)

elupus commented 5 months ago

Upstream issue https://github.com/Swind/pure-python-adb/issues/111

mib1185 commented 5 months ago