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

Add backwards compatibility with pydantic v1 #2261

Closed
postlund opened this issue Oct 23, 2023 · 1 comment
Closed

Add backwards compatibility with pydantic v1 #2261

postlund opened this issue Oct 23, 2023 · 1 comment
Labels
dependencies Pull requests that update a dependency file

Comments

@postlund
Copy link
Owner

What to change?

Seems it's not possible to use pydantic v2 in Home Assistant at the moment. Currently only the extra types package seems to be the problem, so I need to get rid of that and add some shims. More info here:

home-assistant/core#99218
https://github.com/AngellusMortis/pyunifiprotect/pull/297

@postlund postlund added the dependencies Pull requests that update a dependency file label Oct 23, 2023
postlund added a commit that referenced this issue Oct 23, 2023
postlund added a commit that referenced this issue Oct 23, 2023
The features from pydantic-settings aren't actually used nor recommended
so I remove support for it to remove an unnecessary dependency.

Relates to #2261
postlund added a commit that referenced this issue Oct 23, 2023
Use the bundled v1 of pydantic when running with v2 for now. This allows
for usage in Home Assistant until pydantic v2 is supported there.

Relates to #2261
postlund added a commit that referenced this issue Oct 23, 2023
Use the bundled v1 of pydantic when running with v2 for now. This allows
for usage in Home Assistant until pydantic v2 is supported there.

Relates to #2261
postlund added a commit that referenced this issue Oct 23, 2023
postlund added a commit that referenced this issue Oct 23, 2023
The features from pydantic-settings aren't actually used nor recommended
so I remove support for it to remove an unnecessary dependency.

Relates to #2261
postlund added a commit that referenced this issue Oct 23, 2023
Use the bundled v1 of pydantic when running with v2 for now. This allows
for usage in Home Assistant until pydantic v2 is supported there.

Relates to #2261
@postlund
Copy link
Owner Author

Fixed in 0.14.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant