Closed gregrob closed 1 year ago
Indeed, I missed that. I decided to follow the approach from @meichthys just above and replace all special chars with underscores, that should more generally solve this problem.
Fix released in v2.3.0 π
Perfect - resolves it for me - thanks again ππ
The function
sensor_name_from_url
inside ofutils.py
does not appear to handle a-
character in the url.My uptime kuma URLs is
uptime-kuma.home.lan
.Once the integration is started this results in the following error being logged:
Python doesn't like the
-
character in that name. URLs are allowed to contain other special characters but I think this particular character will be very common for uptime-kuma instances. @PhilippMundhenk there are probably better ways but would it be possible to add another line to the function to achieve this cleaning: