forked from platypush/platypush
s/TheengsGateway/TheengsDecoder/g now that the pip package has been published.
This commit is contained in:
parent
431dedf3eb
commit
3743ee4f00
5 changed files with 6 additions and 7 deletions
|
@ -299,7 +299,7 @@ autodoc_mock_imports = [
|
||||||
'async_lru',
|
'async_lru',
|
||||||
'bleak',
|
'bleak',
|
||||||
'bluetooth_numbers',
|
'bluetooth_numbers',
|
||||||
'TheengsGateway',
|
'TheengsDecoder',
|
||||||
]
|
]
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath('../..'))
|
sys.path.insert(0, os.path.abspath('../..'))
|
||||||
|
|
|
@ -7,8 +7,7 @@ from bleak.backends.device import BLEDevice
|
||||||
from bleak.backends.scanner import AdvertisementData
|
from bleak.backends.scanner import AdvertisementData
|
||||||
from bluetooth_numbers import company
|
from bluetooth_numbers import company
|
||||||
|
|
||||||
# pylint: disable=no-name-in-module
|
from TheengsDecoder import decodeBLE, getAttribute, getProperties
|
||||||
from TheengsGateway._decoder import decodeBLE, getAttribute, getProperties
|
|
||||||
|
|
||||||
from platypush.entities import Entity
|
from platypush.entities import Entity
|
||||||
from platypush.entities.batteries import Battery
|
from platypush.entities.batteries import Battery
|
||||||
|
|
|
@ -50,7 +50,7 @@ class BluetoothPlugin(RunnablePlugin, EntityManager):
|
||||||
|
|
||||||
* **bleak** (``pip install bleak``)
|
* **bleak** (``pip install bleak``)
|
||||||
* **bluetooth-numbers** (``pip install bluetooth-numbers``)
|
* **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``)
|
* **pybluez** (``pip install git+https://github.com/pybluez/pybluez``)
|
||||||
* **pyobex** (``pip install git+https://github.com/BlackLight/PyOBEX``)
|
* **pyobex** (``pip install git+https://github.com/BlackLight/PyOBEX``)
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,8 @@ manifest:
|
||||||
pip:
|
pip:
|
||||||
- bleak
|
- bleak
|
||||||
- bluetooth-numbers
|
- bluetooth-numbers
|
||||||
|
- TheengsDecoder
|
||||||
- git+https://github.com/pybluez/pybluez
|
- git+https://github.com/pybluez/pybluez
|
||||||
- git+https://github.com/theengs/gateway
|
|
||||||
- git+https://github.com/BlackLight/PyOBEX
|
- git+https://github.com/BlackLight/PyOBEX
|
||||||
package: platypush.plugins.bluetooth
|
package: platypush.plugins.bluetooth
|
||||||
type: plugin
|
type: plugin
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -17,7 +17,7 @@ def readfile(fname):
|
||||||
def pkg_files(dir):
|
def pkg_files(dir):
|
||||||
paths = []
|
paths = []
|
||||||
# noinspection PyShadowingNames
|
# noinspection PyShadowingNames
|
||||||
for (path, _, files) in os.walk(dir):
|
for path, _, files in os.walk(dir):
|
||||||
for file in files:
|
for file in files:
|
||||||
paths.append(os.path.join('..', path, file))
|
paths.append(os.path.join('..', path, file))
|
||||||
return paths
|
return paths
|
||||||
|
@ -177,9 +177,9 @@ setup(
|
||||||
'bluetooth': [
|
'bluetooth': [
|
||||||
'bleak',
|
'bleak',
|
||||||
'bluetooth-numbers',
|
'bluetooth-numbers',
|
||||||
|
'TheengsDecoder',
|
||||||
'pybluez @ https://github.com/pybluez/pybluez/tarball/master',
|
'pybluez @ https://github.com/pybluez/pybluez/tarball/master',
|
||||||
'PyOBEX @ https://github.com/BlackLight/PyOBEX/tarball/master',
|
'PyOBEX @ https://github.com/BlackLight/PyOBEX/tarball/master',
|
||||||
'TheengsGateway @ https://github.com/theengs/gateway/tarball/development',
|
|
||||||
],
|
],
|
||||||
# Support for TP-Link devices
|
# Support for TP-Link devices
|
||||||
'tplink': ['pyHS100'],
|
'tplink': ['pyHS100'],
|
||||||
|
|
Loading…
Reference in a new issue