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

Multiple "SyntaxWarning: invalid escape sequence" in hpilo.py #296

Open
AnthonyBe opened this issue Jun 22, 2024 · 1 comment
Open

Multiple "SyntaxWarning: invalid escape sequence" in hpilo.py #296

AnthonyBe opened this issue Jun 22, 2024 · 1 comment

Comments

@AnthonyBe
Copy link

Ref home-assistant/core#120144
Issue observed in HA iLO integration.

[2024-06-22 17:45:25.114 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/hpilo.py:204: SyntaxWarning: invalid escape sequence '\P'
  self.hponcfg = 'C:\Program Files\HP Lights-Out Configuration Utility\cpqlocfg.exe'

2024-06-22 17:45:25.116 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/hpilo.py:336: SyntaxWarning: invalid escape sequence '\s'
  body = re.sub('\s+', ' ', body).strip()

2024-06-22 17:45:25.118 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/hpilo.py:432: SyntaxWarning: invalid escape sequence '\$'
  pre, name, post = re.compile(b'(.*)\$EMBED:(.*)\$(.*)', re.DOTALL).match(xml).groups()]
@bamill88
Copy link

bamill88 commented Jul 9, 2024

Looks like this was fixed by this commit yesterday

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

No branches or pull requests

2 participants