Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Невозможно получить список управляемых счетов #17

Open
elagin opened this issue Dec 23, 2024 · 0 comments

Comments

@elagin
Copy link

elagin commented Dec 23, 2024

Возможно связано с #16

Регистратор: homeassistant.config_entries
Источник: config_entries.py:640
Первое сообщение: 10:09:52 (1 сообщений)
Последнее сообщение: 10:09:52

Error setting up entry XXXXXXXXX for tns_energo
Traceback (most recent call last):
File "/config/custom_components/tns_energo/init.py", line 257, in async_setup_entry
accounts = await api_object.async_get_accounts_list()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tns_energo_api/init.py", line 311, in async_get_accounts_list
response = await GetLSListByLS.async_request(self, code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tns_energo_api/requests/account.py", line 241, in async_request
return cls.from_response(response)
~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/tns_energo_api/converters.py", line 189, in from_response
raise ResponseException(code, msg)
tns_energo_api.exceptions.ResponseException: (110, 'Невозможно получить список управляемых счетов')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tns_energo/init.py", line 275, in async_setup_entry
+ str(e)
^
UnboundLocalError: cannot access local variable 'e' where it is not associated with a value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant