platypush/platypush/entities
Fabio Manganiello 5fc9c1199b Fixed the root cause of the failure on the `time` module.
The previous commit prompted a new error:

```
2024-06-01 10:54:08,310|ERROR|platypush:plugin:bluetooth|module 'platypush.entities.time' has no attribute 'time'
Traceback (most recent call last):
  File "/usr/lib/python3.9/dist-packages/platypush/plugins/__init__.py", line 247, in _runner
    self.main()
  File "/usr/lib/python3.9/dist-packages/platypush/plugins/bluetooth/__init__.py", line 590, in main
    self._refresh_cache()
  File "/usr/lib/python3.9/dist-packages/platypush/plugins/bluetooth/__init__.py", line 146, in _refresh_cache
    get_entities_engine().wait_start()
  File "/usr/lib/python3.9/dist-packages/platypush/entities/__init__.py", line 48, in get_entities_engine
    time_start = time.time()
AttributeError: module 'platypush.entities.time' has no attribute 'time'
```

Which explains even the previous error: `import time` in that module
won't use the `time` module from the Python library, but the `.time`
module within the same directory.

This error only happens when the current directory is part of PYTHONPATH
(and usually it shouldn't), but for sake of keeping things safe I've
replaced `time()` with `utcnow().timestamp()`, with `utcnow` imported
from `platypush.utils`.
2024-06-01 09:01:07 +00:00
..
_engine Fixed management of state on `zigbee.mqtt`. 2023-09-14 23:05:27 +02:00
bluetooth New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
managers 🐛 Partial revert of c18768e61f 2024-05-31 19:52:32 +02:00
__init__.py Fixed the root cause of the failure on the `time` module. 2024-06-01 09:01:07 +00:00
_base.py 🐛 Partial revert of c18768e61f 2024-05-31 19:52:32 +02:00
acceleration.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
alarm.py [alarm] Added `media_repeat` configuration. 2023-12-18 13:46:45 +01:00
assistants.py [Assistant] Added `assistant` entity type. 2023-10-23 16:02:05 +02:00
audio.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
batteries.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
buttons.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
cloud.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
contact.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
devices.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
dimmers.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
distance.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
electricity.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
heart.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
humidity.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
illuminance.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
lights.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
linkquality.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
magnetism.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
motion.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
ping.py [#301] Exposing hosts as entities in the `ping` plugin. 2023-12-04 00:36:45 +01:00
presence.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
pressure.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
sensors.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
steps.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
switches.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
system.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
temperature.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
three_axis.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
time.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
variables.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00
weather.py Added support for weather forecast events and entities. 2023-11-23 01:35:58 +01:00
weight.py New API to check if a table class exists before defining it. 2023-10-09 01:33:44 +02:00