Merge branch 'master' into vuejs

This commit is contained in:
Fabio Manganiello 2021-01-23 15:06:14 +01:00
commit 8e2d590e62
5 changed files with 15 additions and 13 deletions

View file

@ -4,19 +4,19 @@ Platypush
[![Build Status](https://travis-ci.org/BlackLight/platypush.svg?branch=master)](https://travis-ci.org/BlackLight/platypush) [![Build Status](https://travis-ci.org/BlackLight/platypush.svg?branch=master)](https://travis-ci.org/BlackLight/platypush)
[![Documentation Status](https://readthedocs.org/projects/platypush/badge/?version=latest)](https://platypush.readthedocs.io/en/latest/?badge=latest) [![Documentation Status](https://readthedocs.org/projects/platypush/badge/?version=latest)](https://platypush.readthedocs.io/en/latest/?badge=latest)
[![pip version](https://img.shields.io/pypi/v/platypush.svg?style=flat)](https://pypi.python.org/pypi/platypush/) [![pip version](https://img.shields.io/pypi/v/platypush.svg?style=flat)](https://pypi.python.org/pypi/platypush/)
[![License](https://img.shields.io/github/license/BlackLight/platypush.svg)](https://github.com/BlackLight/platypush/blob/master/LICENSE) [![License](https://img.shields.io/github/license/BlackLight/platypush.svg)](https://git.platypush.tech/platypush/platypush/-/blob/master/LICENSE.txt)
[![Last Commit](https://img.shields.io/github/last-commit/BlackLight/platypush.svg)](https://github.com/BlackLight/platypush/commits/master) [![Last Commit](https://img.shields.io/github/last-commit/BlackLight/platypush.svg)](https://git.platypush.tech/platypush/platypush/-/commits/master/)
[![Contributions](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/BlackLight/platypush/issues) [![Contributions](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://git.platypush.tech/platypush/platypush/-/issues)
- Advised read: [**Getting started with Platypush**](https://medium.com/@automationguru/automate-your-house-your-life-and-everything-else-around-with-platypush-dba1cd13e3f6) (Medium article). - Advised read: [**Getting started with Platypush**](https://medium.com/@automationguru/automate-your-house-your-life-and-everything-else-around-with-platypush-dba1cd13e3f6) (Medium article).
- The [wiki](https://github.com/BlackLight/platypush/wiki) also contains many resources on getting started. - The [wiki](https://git.platypush.tech/platypush/platypush/-/wikis/home) also contains many resources on getting started.
- Extensive documentation for all the available integrations and messages is available on [ReadTheDocs](https://platypush.readthedocs.io/en/latest/). - Extensive documentation for all the available integrations and messages is available on [ReadTheDocs](https://platypush.readthedocs.io/en/latest/).
- Also check other [Medium stories](https://medium.com/tag/platypush/archive) to get more insights on what you can build with it and inspiration about possible usages. - Also check other [Medium stories](https://medium.com/tag/platypush/archive) to get more insights on what you can build with it and inspiration about possible usages.
- If you have issues/feature requests/enhancement ideas please post a [GitHub issue](https://github.com/BlackLight/platypush/issues). - If you have issues/feature requests/enhancement ideas please [create an issue](https://git.platypush.tech/platypush/platypush/-/issues).
A [Reddit channel](https://www.reddit.com/r/platypush) is also available for more general questions. A [Reddit channel](https://www.reddit.com/r/platypush) is also available for more general questions.
--- ---
@ -75,7 +75,7 @@ Imagine the ability of running the application, with lots of those bundled featu
To get started: To get started:
- [Wiki](https://github.com/BlackLight/platypush/wiki) for installation notes, quick start, examples and architecture reference - [Wiki](https://git.platypush.tech/platypush/platypush/-/wikis/home) for installation notes, quick start, examples and architecture reference
- [Read the docs](https://platypush.readthedocs.io/en/latest/) for a complete reference on the available plugins and backends - [Read the docs](https://platypush.readthedocs.io/en/latest/) for a complete reference on the available plugins and backends
- [Medium articles](https://medium.com/tag/platypush/archive) that describe hands-on applications of platypush - [Medium articles](https://medium.com/tag/platypush/archive) that describe hands-on applications of platypush

View file

@ -119,7 +119,7 @@ EOF
pip install ${dep} pip install ${dep}
done done
pip install --upgrade git+https://github.com/BlackLight/platypush.git pip install --upgrade git+https://git.platypush.tech/platypush/platypush.git
echo "Platypush virtual environment prepared under $envdir" echo "Platypush virtual environment prepared under $envdir"
} }

View file

@ -5,12 +5,12 @@ Welcome to the Platypush reference of available plugins, backends and event type
For more information on Platypush please check out: For more information on Platypush please check out:
* The `GitHub page`_ of the project * The `Gitlab page`_ of the project
* The `online wiki`_ for quickstart and examples * The `online wiki`_ for quickstart and examples
* The `Medium stories`_ for inspiration about possible projects * The `Medium stories`_ for inspiration about possible projects
.. _GitHub page: https://github.com/BlackLight/platypush .. _GitHub page: https://git.platypush.tech/platypush/platypush
.. _online wiki: https://github.com/BlackLight/platypush/wiki .. _online wiki: https://git.platypush.tech/platypush/platypush/-/wikis/home
.. _Medium stories: https://medium.com/tag/platypush/archive .. _Medium stories: https://medium.com/tag/platypush/archive
.. toctree:: .. toctree::

View file

@ -333,8 +333,10 @@ class ZigbeeMqttPlugin(MqttPlugin):
(default: query the default configured device). (default: query the default configured device).
:return: Key->value map of the device properties. :return: Key->value map of the device properties.
""" """
properties = self.publish(topic=self._topic(device + '/get'), properties = self.publish(topic=self._topic(device + ('/get' if property else '')),
reply_topic=self._topic(device), msg={'property': ''}, **self._mqtt_args(**kwargs)).output reply_topic=self._topic(device),
msg={property: ''} if property else '',
**self._mqtt_args(**kwargs)).output
if property: if property:
assert property in properties, 'No such property: ' + property assert property in properties, 'No such property: ' + property

View file

@ -35,7 +35,7 @@ setup(
license="MIT", license="MIT",
python_requires='>= 3.6', python_requires='>= 3.6',
keywords="home-automation iot mqtt websockets redis dashboard notificaions", keywords="home-automation iot mqtt websockets redis dashboard notificaions",
url="https://github.com/BlackLight/platypush", url="https://git.platypush.tech/platypush/platypush",
packages=find_packages(), packages=find_packages(),
include_package_data=True, include_package_data=True,
entry_points={ entry_points={