Thomas Hervé
Thomas Hervé
When a model supports JSON:API, return a different model inlining attributes and relationships.
It's mostly for internal usage, but it can be used to tweaks the spec locally as needed.
This removes some code and use the generator library.
defaults are supposed to be a server indication, we shouldn't send them from the client side.
Let's try to use the builtins when possible.
HA is complaining about `open` calls in the main thread which could cause problem. See https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open