forked from platypush/platypush
Merge pull request '[#291] Removed deprecated light.hue
backend' (#325) from 291/remove-light-hue-backend into master
Reviewed-on: platypush/platypush#325
This commit is contained in:
commit
18375dde40
5 changed files with 0 additions and 38 deletions
|
@ -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
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
``light.hue``
|
||||
===============================
|
||||
|
||||
.. automodule:: platypush.backend.light.hue
|
||||
:members:
|
||||
|
|
@ -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:
|
|
@ -1,6 +0,0 @@
|
|||
manifest:
|
||||
events:
|
||||
install:
|
||||
pip: []
|
||||
package: platypush.backend.light.hue
|
||||
type: backend
|
Loading…
Reference in a new issue