platypush/platypush/entities
Fabio Manganiello c4efec6832
Several fixes and improvements on the entities engine.
- Support for an optional callback on `publish_entities` to get notified
  when the published object are flushed to the db.

- Use `lazy='selectin'` for the entity parent -> children relationship -
  it is more efficient and it ensures that all the data the application
  needs is loaded upfront.

- `Entity.entity_key` rolled back to `<external_id, plugin>`. The
  fallback logic on `<id, plugin>` created more problems than those it
  as supposed to solve.

- Added `expire_on_commit=False` to the entities engine session to make
  sure that we don't get errors on detached/expired instances.
2023-03-09 01:16:04 +01:00
..
_engine Several fixes and improvements on the entities engine. 2023-03-09 01:16:04 +01:00
_managers Several fixes and improvements on the entities engine. 2023-03-09 01:16:04 +01:00
__init__.py Several fixes and improvements on the entities engine. 2023-03-09 01:16:04 +01:00
_base.py Several fixes and improvements on the entities engine. 2023-03-09 01:16:04 +01:00
audio.py Added Volume and Muted entities 2023-01-22 21:04:46 +01:00
batteries.py Check for table metadata existance in Base.metadata instead of having a separate entity registry 2022-12-04 16:28:46 +01:00
bluetooth.py Added brand, model and model_id columns to BluetoothDevice. 2023-02-19 23:02:04 +01:00
buttons.py Implemented remaining supported entities for the smartthings integration 2023-01-26 22:10:02 +01:00
contact.py Added remaining bluetooth entity types in _mappers.py. 2023-02-23 21:20:41 +01:00
devices.py Added some more docstrings to entities. 2023-02-22 01:02:26 +01:00
dimmers.py Added some more docstrings to entities. 2023-02-22 01:02:26 +01:00
electricity.py Check for table metadata existance in Base.metadata instead of having a separate entity registry 2022-12-04 16:28:46 +01:00
heart.py Added support for heart rate sensor entities. 2023-02-23 00:55:55 +01:00
humidity.py Added DewPointSensor entities. 2023-02-23 01:23:04 +01:00
illuminance.py Check for table metadata existance in Base.metadata instead of having a separate entity registry 2022-12-04 16:28:46 +01:00
lights.py Check for table metadata existance in Base.metadata instead of having a separate entity registry 2022-12-04 16:28:46 +01:00
linkquality.py Check for table metadata existance in Base.metadata instead of having a separate entity registry 2022-12-04 16:28:46 +01:00
motion.py Added MotionSensor entities 2023-01-21 14:47:18 +01:00
presence.py Added remaining bluetooth entity types in _mappers.py. 2023-02-23 21:20:41 +01:00
pressure.py Added PressureSensor entities. 2023-02-23 01:12:27 +01:00
sensors.py Added optional unit column to RawSensor entity. 2023-03-03 01:59:27 +01:00
steps.py Added StepsSensor entity. 2023-02-23 00:45:58 +01:00
switches.py Check for table metadata existance in Base.metadata instead of having a separate entity registry 2022-12-04 16:28:46 +01:00
temperature.py Check for table metadata existance in Base.metadata instead of having a separate entity registry 2022-12-04 16:28:46 +01:00
time.py Added TimeDurationSensor entity. 2023-02-23 01:02:13 +01:00
weight.py Added remaining bluetooth entity types in _mappers.py. 2023-02-23 21:20:41 +01:00