Closed nvanggaard closed 1 year ago
When trying to add a home charger i just get an error
| 2023-03-28 18:21:22.406 ERROR (MainThread) [aiohttp.server] Error handling request homeassistant | Traceback (most recent call last): homeassistant | File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request homeassistant | resp = await request_handler(request) homeassistant | File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle homeassistant | resp = await handler(request) homeassistant | File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl homeassistant | return await handler(request) homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 67, in security_filter_middleware homeassistant | return await handler(request) homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 227, in forwarded_middleware homeassistant | return await handler(request) homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware homeassistant | return await handler(request) homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware homeassistant | return await handler(request) homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 234, in auth_middleware homeassistant | return await handler(request) homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 146, in handle homeassistant | result = await result homeassistant | File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post homeassistant | return await super().post(request, flow_id) homeassistant | File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper homeassistant | result = await method(view, request, data, *args, **kwargs) homeassistant | File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post homeassistant | result = await self._flow_mgr.async_configure(flow_id, data) homeassistant | File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 271, in async_configure homeassistant | result = await self._async_handle_step( homeassistant | File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step homeassistant | result: FlowResult = await getattr(flow, method)(user_input) homeassistant | File "/config/custom_components/clever_api/config_flow.py", line 130, in async_step_box homeassistant | resp = await sub.get_evse_info() homeassistant | File "/config/custom_components/clever_api/clever/clever.py", line 201, in get_evse_info homeassistant | model = EvseInfo.parse_obj(resp) homeassistant | File "/usr/local/lib/python3.10/site-packages/pydantic/main.py", line 526, in parse_obj homeassistant | return cls(**obj) homeassistant | File "/usr/local/lib/python3.10/site-packages/pydantic/main.py", line 341, in __init__ homeassistant | if validation_error: homeassistant | pydantic.error_wrappers.ValidationError: 1 validation error for EvseInfo homeassistant | data -> 0 -> smartChargingConfiguration homeassistant | none is not an allowed value (type=type_error.none.not_allowed)
No response
Is this problem fixed in 0.2.3?
Yes it is :)
Thanks a bunch!
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4644 Installed Version | 1.31.0 Stage | running Available Repositories | 1250 Downloaded Repositories | 16Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okDashboards
dashboards | 3 -- | -- resources | 13 views | 11 mode | storageRecorder
oldest_recorder_run | 7 March 2022 at 16:38 -- | -- current_recorder_run | 28 March 2023 at 20:07 estimated_db_size | 7098.55 MiB database_engine | mysql database_version | 10.10.2Checklist
Describe the issue
When trying to add a home charger i just get an error
Reproduction steps
Debug logs
Diagnostics dump
No response