In theory :
- the z2m container does not exist
- if no information is stored in the DB: create the container with values generated by the image, then read those values to save in the DB
- if the values are in the DB: create the container with the stored values
- if the z2m container exists
- save to the DB (override if the variables already exist)
The PR is for now only on my personal fork
I also took the opportunity to simplify some heavy parts in the tests, and some logs.
1 Like