Hello !
Thanks for your work.
I get this log, what should I do ?
‘’’
Logger: homeassistant.components.sensor
Source: custom_components/my_unifi/sensor.py:170
Integration: Senzor (documentation, issues)
First occurred: 10:09:23 (1 occurrences)
Last logged: 10:09:23
my_unifi: Error on device update!
Traceback (most recent call last): File “/usr/local/lib/python3.7/site-packages/requests/models.py”, line 380, in prepare_url scheme, auth, host, port, path, query, fragment = parse_url(url) File “/usr/local/lib/python3.7/site-packages/urllib3/util/url.py”, line 392, in parse_url return six.raise_from(LocationParseError(source_url), None) File “”, line 3, in raise_from urllib3.exceptions.LocationParseError: Failed to parse: https://192.168.88.175:8443 /api/login During handling of the above exception, another exception occurred: Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 324, in _async_add_entity await entity.async_device_update(warning=False) File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 476, in async_device_update await self.hass.async_add_executor_job(self.update) File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run result = self.fn(*self.args, **self.kwargs) File “/config/custom_components/my_unifi/sensor.py”, line 107, in update self._data.update() File “/config/custom_components/my_unifi/sensor.py”, line 231, in update self.login() File “/config/custom_components/my_unifi/sensor.py”, line 170, in login self._current_status_code = self._session.post("{}/api/login".format(self._baseurl), data=json.dumps(self._login_data), verify=self._verify_ssl).status_code File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 578, in post return self.request(‘POST’, url, data=data, json=json, **kwargs) File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 516, in request prep = self.prepare_request(req) File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 459, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File “/usr/local/lib/python3.7/site-packages/requests/models.py”, line 314, in prepare self.prepare_url(url, params) File “/usr/local/lib/python3.7/site-packages/requests/models.py”, line 382, in prepare_url raise InvalidURL(*e.args) requests.exceptions.InvalidURL: Failed to parse: https://192.168.88.175:8443 /api/login
‘’’