Merge pull request '[#291] Removed deprecated `light.hue` backend' (#325) from 291/remove-light-hue-backend into master
continuous-integration/drone/push Build is passing Details

Reviewed-on: #325
This commit is contained in:
Fabio Manganiello 2023-09-20 23:49:02 +02:00
commit 18375dde40
5 changed files with 0 additions and 38 deletions

View File

@ -27,7 +27,6 @@ Backends
platypush/backend/joystick.jstest.rst
platypush/backend/joystick.linux.rst
platypush/backend/kafka.rst
platypush/backend/light.hue.rst
platypush/backend/log.http.rst
platypush/backend/mail.rst
platypush/backend/midi.rst

View File

@ -1,6 +0,0 @@
``light.hue``
===============================
.. automodule:: platypush.backend.light.hue
:members:

View File

@ -1,25 +0,0 @@
import warnings
from platypush.backend import Backend
class LightHueBackend(Backend):
"""
**DEPRECATED**
The polling logic of this backend has been moved to the ``light.hue`` plugin itself.
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
warnings.warn(
'The light.hue backend is deprecated. All of its logic '
'has been moved to the light.hue plugin itself.'
)
def run(self):
super().run()
self.logger.info('Stopped Hue lights backend')
# vim:sw=4:ts=4:et:

View File

@ -1,6 +0,0 @@
manifest:
events:
install:
pip: []
package: platypush.backend.light.hue
type: backend