Fabio Manganiello
d872835093
New API to check if a table class exists before defining it.
...
- Check if it's part of the metadata through a function call rather than
checking `Base.metadata` in every single module.
- Make it possible to override them (mostly for doc generation logic
that needs to be able to import those classes).
- Make it possible to extend them.
2023-10-09 01:33:44 +02:00
Fabio Manganiello
ecba72935f
Check for table metadata existance in Base.metadata
instead of having a separate entity registry
2022-12-04 16:28:46 +01:00
Fabio Manganiello
041f64c80f
Dirty workaround to prevent redefinition of SQLAlchemy ORM model classes
2022-10-10 01:38:15 +02:00
Fabio Manganiello
30a024befb
Manage hue/sat/bri/ct light ranges on the light entity object itself
2022-04-30 19:38:50 +02:00
Fabio Manganiello
975d37c562
Added relevant attributes to light
entities
2022-04-29 23:29:04 +02:00
Fabio Manganiello
e6bfa1c50f
Better dynamic entities discovery
2022-04-13 11:25:14 +02:00
Fabio Manganiello
f52b556219
- icon_class should not be part of the backend model
...
- Interaction with entities should occur through the `entities.action`
method, not by implementing native methods on each of the model
objects
2022-04-08 16:49:47 +02:00
Fabio Manganiello
947b50b937
Added meta as a JSON field on the Entity table
...
Metadata attributes can now be defined and overridden on the object
itself, as well as on the database. Note that db settings will always
take priority in case of value conflicts.
2022-04-07 22:11:31 +02:00
Fabio Manganiello
db7c2095ea
Implemented meta property for entities (for now it only include icon_class
)
2022-04-07 18:09:25 +02:00
Fabio Manganiello
4ee7e4db29
Basic support for entities on the local db and implemented support for switch entities on the tplink plugin
2022-04-04 16:50:17 +02:00