Skip to content

Failed to set up lametric sky #136143

@Joerivanrokeghem

Description

@Joerivanrokeghem

The problem

Still a error when trying to setup lametric sky

What version of Home Assistant Core has the issue?

core-2025.1.3

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

No response

Diagnostics information

Logger: homeassistant.components.lametric
Bron: components/lametric/config_flow.py:206
integratie: LaMetric (documentatie, problemen)
Eerst voorgekomen: 06:36:06 (4 gebeurtenissen)
Laatst gelogd: 06:39:29

Unexpected error occurred
Traceback (most recent call last):
File "", line 9, in mashumaro_from_dict
File "", line 13, in mashumaro_from_dict
mashumaro.exceptions.MissingField: Field "volume" of type Optional[int] is missing in Audio instance

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/lametric/config_flow.py", line 206, in async_step_cloud_select_device
return await self._async_step_create_entry(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
str(device.ip), device.api_key
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/components/lametric/config_flow.py", line 249, in _async_step_create_entry
device = await lametric.device()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/demetriek/device.py", line 147, in device
return Device.from_dict(response)
~~~~~~~~~~~~~~~~^^^^^^^^^^
File "", line 11, in mashumaro_from_dict
mashumaro.exceptions.InvalidFieldValue: Field "audio" of type Optional[Audio] in Device has invalid value {'available': False}

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions