issues
search
voorkant
/
voorkant-core
https://voorkant.org/
MIT License
2
stars
3
forks
source link
Introduce Enum for domains, and lots more
#29
Closed
cyclops1982
closed
8 months ago
cyclops1982
commented
8 months ago
Ok, this is an ugly one, but does a lot:
Make HAEntity aware of it's domain.
Allow us to get the services /from/ the haentity. Some HAEntities do not have services (sensors for example)
Cleanup the use of
entries
in the ftxui, as we now have a map<string,haentity> within the backend and can use that.
REmove HABackend::GetServicesForDomain() as we should be asking that to the HAEntity, or to the HADomain.
Make the backend get the services (to build up domains) first, before getting states and start listening to events.
Let HABAckend::start() wait until we have loaded the information before continuing.
Move external code (argparse, magic_enum) to ext directory and exclude this from clang-format.
Ok, this is an ugly one, but does a lot:
entries
in the ftxui, as we now have a map<string,haentity> within the backend and can use that.