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

Unknown error occured Башэлектросбыт #17

Open
dmitry-ponamarev opened this issue Nov 2, 2021 · 4 comments
Open

Unknown error occured Башэлектросбыт #17

dmitry-ponamarev opened this issue Nov 2, 2021 · 4 comments

Comments

@dmitry-ponamarev
Copy link

dmitry-ponamarev commented Nov 2, 2021

При попытке добавить интеграцию для ЛК Башэлектросбыт выдает "Unknown error occurred"
В лог пишет:

2021-11-02 12:20:37 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request resp = await self._request_handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle resp = await handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 220, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 24, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 144, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 157, in post return await super().post(request, flow_id) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper result = await method(view, request, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 111, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 198, in async_configure result = await self._async_handle_step(flow, cur_step["step_id"], user_input) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 256, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/config/custom_components/lkcomu_interrao/config_flow.py", line 171, in async_step_user self._accounts = await api.async_update_accounts() File "/usr/local/lib/python3.9/site-packages/inter_rao_energosbyt/interfaces.py", line 911, in async_update_accounts response = await LSList.async_request(self) File "/usr/local/lib/python3.9/site-packages/inter_rao_energosbyt/actions/sql/ls_management.py", line 125, in async_request return await api.async_action_map(cls, ACTION_SQL, query, data) File "/usr/local/lib/python3.9/site-packages/inter_rao_energosbyt/interfaces.py", line 597, in async_action_map data=list(map(map_with.from_response, filter(bool, response["data"]))), File "/usr/local/lib/python3.9/site-packages/inter_rao_energosbyt/actions/__init__.py", line 182, in from_response return cls(**init_args) # type: ignore[call-arg] File "", line 3, in __init__ _setattr('data', __attr_converter_data(data)) File "/usr/local/lib/python3.9/site-packages/inter_rao_energosbyt/actions/sql/ls_management.py", line 103, in _converter__ls_list__data return LSListData.from_response(value) File "/usr/local/lib/python3.9/site-packages/inter_rao_energosbyt/actions/__init__.py", line 182, in from_response return cls(**init_args) # type: ignore[call-arg] TypeError: __init__() missing 1 required keyword-only argument: 'kd_ls_owner_type'

bashesk

@alryaz
Copy link
Owner

alryaz commented Nov 5, 2021

Снова, видать, поменяли формат данных. Ожидайте, сегодня вечером проверю все тонкости, исправлю.

@Blacksli
Copy link

Тоже проблема с Башэлектросбыт

Logger: aiohttp.server
Source: custom_components/lkcomu_interrao/config_flow.py:171
Integration: Личный кабинет Интер РАО (Энергосбыт) (documentation, issues)
First occurred: 15:48:58 (2 occurrences)
Last logged: 15:49:19

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 220, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 164, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 111, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 252, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 325, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/lkcomu_interrao/config_flow.py", line 171, in async_step_user
self._accounts = await api.async_update_accounts()
File "/usr/local/lib/python3.9/site-packages/inter_rao_energosbyt/interfaces.py", line 911, in async_update_accounts
response = await LSList.async_request(self)
File "/usr/local/lib/python3.9/site-packages/inter_rao_energosbyt/actions/sql/ls_management.py", line 125, in async_request
return await api.async_action_map(cls, ACTION_SQL, query, data)
File "/usr/local/lib/python3.9/site-packages/inter_rao_energosbyt/interfaces.py", line 597, in async_action_map
data=list(map(map_with.from_response, filter(bool, response["data"]))),
File "/usr/local/lib/python3.9/site-packages/inter_rao_energosbyt/actions/init.py", line 182, in from_response
return cls(**init_args) # type: ignore[call-arg]
File "", line 3, in init
_setattr('data', __attr_converter_data(data))
File "/usr/local/lib/python3.9/site-packages/inter_rao_energosbyt/actions/sql/ls_management.py", line 103, in _converter__ls_list__data
return LSListData.from_response(value)
File "/usr/local/lib/python3.9/site-packages/inter_rao_energosbyt/actions/init.py", line 182, in from_response
return cls(**init_args) # type: ignore[call-arg]
TypeError: init() missing 1 required keyword-only argument: 'kd_ls_owner_type'

@ostap7474
Copy link

При попытке добавить интеграцию для ЛК Башэлектросбыт выдает "Unknown error occurred"

Logger: aiohttp.server
Source: custom_components/lkcomu_interrao/config_flow.py:171
Integration: Личный кабинет Интер РАО (Энергосбыт) (documentation, issues)
First occurred: 09:59:39 (1 occurrences)
Last logged: 09:59:39

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 178, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 280, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/lkcomu_interrao/config_flow.py", line 171, in async_step_user
self._accounts = await api.async_update_accounts()
File "/usr/local/lib/python3.10/site-packages/inter_rao_energosbyt/interfaces.py", line 911, in async_update_accounts
response = await LSList.async_request(self)
File "/usr/local/lib/python3.10/site-packages/inter_rao_energosbyt/actions/sql/ls_management.py", line 125, in async_request
return await api.async_action_map(cls, ACTION_SQL, query, data)
File "/usr/local/lib/python3.10/site-packages/inter_rao_energosbyt/interfaces.py", line 597, in async_action_map
data=list(map(map_with.from_response, filter(bool, response["data"]))),
File "/usr/local/lib/python3.10/site-packages/inter_rao_energosbyt/actions/init.py", line 182, in from_response
return cls(**init_args) # type: ignore[call-arg]
File "", line 3, in init
_setattr('data', __attr_converter_data(data))
File "/usr/local/lib/python3.10/site-packages/inter_rao_energosbyt/actions/sql/ls_management.py", line 103, in _converter__ls_list__data
return LSListData.from_response(value)
File "/usr/local/lib/python3.10/site-packages/inter_rao_energosbyt/actions/init.py", line 182, in from_response
return cls(**init_args) # type: ignore[call-arg]
TypeError: LSListData.init() missing 1 required keyword-only argument: 'kd_ls_owner_type'

@Gazplem
Copy link

Gazplem commented Nov 3, 2023

При попытке добавить интеграцию для ЛК Башэлектросбыт выдает "Unknown error occurred"

Logger: aiohttp.server
Source: /usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py:403
First occurred: 09:53:55 (3 occurrences)
Last logged: 10:11:32

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 177, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 293, in async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 394, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/lkcomu_interrao/config_flow.py", line 171, in async_step_user
self._accounts = await api.async_update_accounts()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/inter_rao_energosbyt/interfaces.py", line 911, in async_update_accounts
response = await LSList.async_request(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/inter_rao_energosbyt/actions/sql/ls_management.py", line 125, in async_request
return await api.async_action_map(cls, ACTION_SQL, query, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/inter_rao_energosbyt/interfaces.py", line 597, in async_action_map
data=list(map(map_with.from_response, filter(bool, response["data"]))),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/inter_rao_energosbyt/actions/init.py", line 182, in from_response
return cls(**init_args) # type: ignore[call-arg]
^^^^^^^^^^^^^^^^
File "", line 3, in init
_setattr('data', __attr_converter_data(data))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/inter_rao_energosbyt/actions/sql/ls_management.py", line 103, in _converter__ls_list__data
return LSListData.from_response(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/inter_rao_energosbyt/actions/init.py", line 182, in from_response
return cls(**init_args) # type: ignore[call-arg]
^^^^^^^^^^^^^^^^
TypeError: LSListData.init() missing 1 required keyword-only argument: 'kd_ls_owner_type'

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

5 participants