Motor widget: Option for header instead of variant
I would like to use bar widget (without header state).
One idea would be to add more variant for each components.
But we could also use the default variant widget with more options.
I propose to
- Create an optional
header
in options field - To update the
MotorDefault
with it - Actual motor variant can stay for compatibility, it is not a huge cost
- Then update at least the
ShutterDefault
with it
This way could be a bit more easier to manage, and variant could be reserved for bigger advanced changes.
I am also pretty sure this different layouts for the header can be mutualized.
top
Header Which is also the default (if no header field is specified)
- type: component
component: hardware
ids:
- id: omega
options:
header: top
front
Header
- type: component
component: hardware
ids:
- id: omega
options:
header: front
none
Header
- type: component
component: hardware
ids:
- id: omega
options:
header: none
Edited by Valentin Valls