core: Not able to connect Lametric Time with the new integration
The problem
When I try to connect a Lametric Time with the new integration (with connection to Lametric dev site or by providing manually the api key), I have an « unexpected error ». It was working well with the previous configuration in the yaml file.
What version of Home Assistant Core has the issue?
2022.9.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Lametric
Link to integration documentation on our website
https://www.home-assistant.io/integrations/lametric
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.lametric
Source: components/lametric/config_flow.py:221
Integration: LaMetric ([documentation](https://www.home-assistant.io/integrations/lametric), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+lametric%22))
First occurred: 22:28:11 (5 occurrences)
Last logged: 22:34:51
Unexpected error occurred
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/lametric/config_flow.py", line 180, in async_step_cloud_select_device
return await self._async_step_create_entry(
File "/usr/src/homeassistant/homeassistant/components/lametric/config_flow.py", line 221, in _async_step_create_entry
device = await lametric.device()
File "/usr/local/lib/python3.10/site-packages/demetriek/device.py", line 113, in device
return Device.parse_obj(response)
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 2 validation errors for Device
wifi -> encryption
field required (type=value_error.missing)
wifi -> rssi
none is not an allowed value (type=type_error.none.not_allowed)
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 17 (3 by maintainers)
Thanks! And thanks foryour work
how can i update this in my hassio?