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

Warnings in HA Logs #189

Open
antbarney opened this issue Feb 17, 2024 · 2 comments
Open

Warnings in HA Logs #189

antbarney opened this issue Feb 17, 2024 · 2 comments

Comments

@antbarney
Copy link
Contributor

Not sure exactly when these started but just noticed these new warnings being posted on HA Restarts. I have not noticed any issues aside from the reported warnings HA and the Integration look to be working correctly.

Logger: py.warnings
Source: loader.py:864
First occurred: 9:54:10 AM (2 occurrences)
Last logged: 9:54:10 AM

/config/custom_components/pfsense/sensor.py:599: SyntaxWarning: invalid escape sequence '.' value = re.sub("[^0-9\.]", "", value)
/config/custom_components/pfsense/sensor.py:649: SyntaxWarning: invalid escape sequence '.' value = re.sub("[^0-9\.]
", "", value)

This error originated from a custom integration.

Logger: py.warnings
Source: custom_components/pfsense/init.py:50
Integration: pfSense (documentation, issues)
First occurred: 9:54:09 AM (1 occurrences)
Last logged: 9:54:09 AM

/config/custom_components/pfsense/pypfsense/init.py:1201: SyntaxWarning: invalid escape sequence '\D' script = """

@nagyrobi
Copy link

2024-02-17 18:28:07.899 WARNING (MainThread) [py.warnings] /config/custom_components/pfsense/pypfsense/__init__.py:1201: SyntaxWarning: invalid escape sequence '\D'
  script = """

2024-02-17 18:28:11.166 WARNING (MainThread) [py.warnings] /config/custom_components/pfsense/sensor.py:599: SyntaxWarning: invalid escape sequence '\.'
  value = re.sub("[^0-9\.]*", "", value)

2024-02-17 18:28:11.166 WARNING (MainThread) [py.warnings] /config/custom_components/pfsense/sensor.py:649: SyntaxWarning: invalid escape sequence '\.'
  value = re.sub("[^0-9\.]*", "", value)

@bigbangus
Copy link

I get the same after updating to the most recent version. Once it loads and throws the typical custom integration warning, I get the invalid escape sequence '\D' warning.

2024-02-20 10:43:45.829 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration pfsense which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-20 10:43:48.232 WARNING (MainThread) [py.warnings] /config/custom_components/pfsense/pypfsense/__init__.py:1201: SyntaxWarning: invalid escape sequence '\D'
  script = 

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

3 participants