Martin Neubert

Results 3 issues of Martin Neubert

In pydantic 2, `copy` of a model is deprecated, we should use `model_copy` instead. Migration Guide: https://docs.pydantic.dev/2.0/migration/#migration-guide

This fixes #77 by setting odometer values to none if measurements dict is missing in data dict.

After fixing Cupra Hybrids with daernsinstantfortress/WeConnect-Cupra-python/pull/13, the next error i get after configuring the extension is this: ``` File "/home/nux/hass/core/config/custom_components/cupra_we_connect/sensor.py", line 209, in value=lambda data: data["measurements"][ ~~~~^^^^^^^^^^^^^^^^ ``` It seems...