Migrated/refactored switchbot.bluetooth integration.

- Out `gattlib` + `pybluez`, in `bleak`. It's not platform-dependent, it doesn't
  require libboost and other heavy build dependencies, and it doesn't require the
  user that runs the service from having special privileges to access raw
  Bluetooth sockets.

- Better integration with Platypush native entities. The devices are now mapped
  to write-only `EnumSwitch` entities, and the status returns the serialized
  representation of those entities instead of the previous intermediate
  representation.
This commit is contained in:
Fabio Manganiello 2023-02-08 22:42:00 +01:00
parent 35719b0da9
commit 8469a1027f
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774
4 changed files with 135 additions and 121 deletions
docs/source

View file

@ -296,6 +296,7 @@ autodoc_mock_imports = [
'aiofiles',
'aiofiles.os',
'async_lru',
'bleak',
]
sys.path.insert(0, os.path.abspath('../..'))