platypush/platypush/entities
Fabio Manganiello 276aff757b
Removed circular dependency.
Workaround for the circular dependency between
`platypush.entities.bluetooth` and `platypush.plugins.bluetooth.model`.

Unentangling the circular dependency would require way too much work,
since the entity model provides several helpers and properties that
depend on the plugin's model.

The workaround in this commit is to simply push those imports down in
the methods that use them, so they won't be imported until those methods
are called, as well as removing some type annotations that depended on
those objects.
2023-03-26 15:30:57 +02:00
..
_engine Always read an entity's parent through get_parent when climbing up. 2023-03-22 22:41:09 +01:00
bluetooth Removed circular dependency. 2023-03-26 15:30:57 +02:00
managers `platypush.entities._managers` -> `platypush.entities.managers`. 2023-03-26 03:46:06 +02:00
__init__.py `platypush.entities._managers` -> `platypush.entities.managers`. 2023-03-26 03:46:06 +02:00
_base.py Added a list of `excluded_manufacturers` to `BluetoothPlugin`. 2023-03-21 14:32:45 +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
buttons.py Implemented remaining supported entities for the `smartthings` integration 2023-01-26 22:10:02 +01:00
cloud.py Rewritten `linode` integration. 2023-03-26 11:23:33 +02: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