s/TheengsGateway/TheengsDecoder/g now that the pip package has been published.

This commit is contained in:
Fabio Manganiello 2023-03-20 01:41:21 +01:00
parent 431dedf3eb
commit 3743ee4f00
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
5 changed files with 6 additions and 7 deletions

View File

@ -299,7 +299,7 @@ autodoc_mock_imports = [
'async_lru',
'bleak',
'bluetooth_numbers',
'TheengsGateway',
'TheengsDecoder',
]
sys.path.insert(0, os.path.abspath('../..'))

View File

@ -7,8 +7,7 @@ from bleak.backends.device import BLEDevice
from bleak.backends.scanner import AdvertisementData
from bluetooth_numbers import company
# pylint: disable=no-name-in-module
from TheengsGateway._decoder import decodeBLE, getAttribute, getProperties
from TheengsDecoder import decodeBLE, getAttribute, getProperties
from platypush.entities import Entity
from platypush.entities.batteries import Battery

View File

@ -50,7 +50,7 @@ class BluetoothPlugin(RunnablePlugin, EntityManager):
* **bleak** (``pip install bleak``)
* **bluetooth-numbers** (``pip install bluetooth-numbers``)
* **TheengsGateway** (``pip install git+https://github.com/theengs/gateway``)
* **TheengsDecoder** (``pip install TheengsDecoder``)
* **pybluez** (``pip install git+https://github.com/pybluez/pybluez``)
* **pyobex** (``pip install git+https://github.com/BlackLight/PyOBEX``)

View File

@ -16,8 +16,8 @@ manifest:
pip:
- bleak
- bluetooth-numbers
- TheengsDecoder
- git+https://github.com/pybluez/pybluez
- git+https://github.com/theengs/gateway
- git+https://github.com/BlackLight/PyOBEX
package: platypush.plugins.bluetooth
type: plugin

View File

@ -17,7 +17,7 @@ def readfile(fname):
def pkg_files(dir):
paths = []
# noinspection PyShadowingNames
for (path, _, files) in os.walk(dir):
for path, _, files in os.walk(dir):
for file in files:
paths.append(os.path.join('..', path, file))
return paths
@ -177,9 +177,9 @@ setup(
'bluetooth': [
'bleak',
'bluetooth-numbers',
'TheengsDecoder',
'pybluez @ https://github.com/pybluez/pybluez/tarball/master',
'PyOBEX @ https://github.com/BlackLight/PyOBEX/tarball/master',
'TheengsGateway @ https://github.com/theengs/gateway/tarball/development',
],
# Support for TP-Link devices
'tplink': ['pyHS100'],