lib: Rework hardware as independent directories
This PR rework the file layout of the hardware.
Each sub directory contains:
-
Default
: the widget -
State
: A dedicated widget displaying the state -
schema
: The description of the hardware exposed by the server -
options
: arguments we can pass to the widget from the yml layout
I expect this layout to be easier to maintain and to have new contributions.
Such directory could be reused to the daiquiri app. This way all the variant could be in the same directory, which also should simplify the maintenance.
- In the future We will probably be able to rename the functions and types to drop the specialized name:
FrontendSchema
->Schema
. And maybe have an unified way to import all that stuffs at once - Maybe there is a way to extract 2 other components which are derived:
base
(the abstract component inherited by every hardware) andgeneric
(which is anything we don't know what it is (i guess))
Edited by Valentin Valls