itchannel / fordpass-ha

Fordpass integration for Home Assistant
276 stars 43 forks source link

SyntaxWarning on regex in 1.68 release #494

Open jeffjumper opened 1 month ago

jeffjumper commented 1 month ago

FYI: with the 1.68 release I'm seeing this warning in my log. The integration seems to work despite this:

2024-05-11 10:34:44.193 WARNING (ImportExecutor_0) [py.warnings] /config/custom_components/fordpass/fordpass_new.py:263: SyntaxWarning: invalid escape sequence '\s'
ibm_url = re.findall('data-ibm-login-url="(.*)"\s', response.text)[0]

Core: 2024.5.3 Supervisor: 2024.05.1 Operating System: 12.3 Frontend: 20240501.1

I'm using the North American login servers, in case that matters.

itchannel commented 1 month ago

Aware of this but it's part of the original login code. Will be removed in the future version when I have time to refactor and fix the current login issues 👍