/usr/local/lib/python3.12/site-packages/pybotvac/robot.py:141: SyntaxWarning: invalid escape sequence '\d' endpoint=re.sub(":\d+", "", endpoint), # noqa: W605, Remove port number
The fix was to declare a string explicitly as regex in robots.py, line 144:
From this:
self._url = "{endpoint}/vendors/{vendor_name}/robots/{serial}/messages".format(
endpoint=re.sub(":\d+", "", endpoint), # noqa: W605, Remove port number
vendor_name=vendor.name,
serial=self.serial,
)
To this:
self._url = "{endpoint}/vendors/{vendor_name}/robots/{serial}/messages".format(
endpoint=re.sub(r":\d+", "", endpoint), # Remove port number
vendor_name=vendor.name,
serial=self.serial,
)
Unfortunately, I had to fix some technical debt to keep the CI happy, and so this PR grew. I only did the most important things to get the CI up and running, but it would need some more maintenance, which is not included in this PR.
With the current release home assistant logs a warning:
The fix was to declare a string explicitly as regex in
robots.py
, line 144:From this:
To this:
Unfortunately, I had to fix some technical debt to keep the CI happy, and so this PR grew. I only did the most important things to get the CI up and running, but it would need some more maintenance, which is not included in this PR.