-
-
Notifications
You must be signed in to change notification settings - Fork 7
Description
When I have one building or location in the mytotalconnectcomfort, there is no problem. Otherwise, when I add up a second location, it fells ? Can we have a multi locations system ? Here are the errors that pop up :
Traceback (most recent call last):
File "C:\Users\ipaquette\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pyhtcc\pyhtcc.py", line 598, in _set_location_id_from_result
self._locationId = int(result.url.split("portal/")[1].split("/")[0])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'Locations'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\ipaquette\Documents\app\serveur_python\ResideoServer.py", line 282, in
user = PyHTCC(email, mdp)
^^^^^^^^^^^^^^^^^^
File "C:\Users\ipaquette\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pyhtcc\pyhtcc.py", line 478, in init
self.authenticate()
File "C:\Users\ipaquette\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pyhtcc\pyhtcc.py", line
491, in authenticate
return self._do_authenticate()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ipaquette\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pyhtcc\pyhtcc.py", line
572, in _do_authenticate
self._set_location_id_from_result(result)
File "C:\Users\ipaquette\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pyhtcc\pyhtcc.py", line
601, in _set_location_id_from_result
self._locationId = int(re.findall(r"locationId=(\d+)", result.text)[0])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range