travisghansen / hass-pfsense

pfSense integration with Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warnings in HA Logs

antbarney opened this issue · comments

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 = """

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)

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 =