Open kadykov opened 1 year ago
This is an intentional choice because units as config is not general to all hardware, and thus is not included in the gas position trait.
Some hardware reports it's units via firmware, other hardware has no units at all, while we have standardized how clients ask for units, how the daemon knows its units is dependent on the individual case.
I would consider adding a separate trait only about units-as-config but I'm reticent to add config-only traits.
It makes sense. Thank you for your answer. Do you know if this is mentioned somewhere in the documentation?
To reproduce:
In the configuration
yml
file:In the daemon class:
From the client side:
I see that
get_units()
is covered by tests, but I cannot check it because on my machine most of the tests fail onfrom yaqd_core import testing
.