From 7ba9a8930a0b35919e4b9ed6540a5caadbc33691 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 20 Sep 2023 23:46:40 +0200 Subject: [PATCH] [#291] Removed deprecated `light.hue` backend. Closes: #291 --- docs/source/backends.rst | 1 - docs/source/platypush/backend/light.hue.rst | 6 ----- platypush/backend/light/__init__.py | 0 platypush/backend/light/hue/__init__.py | 25 --------------------- platypush/backend/light/hue/manifest.yaml | 6 ----- 5 files changed, 38 deletions(-) delete mode 100644 docs/source/platypush/backend/light.hue.rst delete mode 100644 platypush/backend/light/__init__.py delete mode 100644 platypush/backend/light/hue/__init__.py delete mode 100644 platypush/backend/light/hue/manifest.yaml diff --git a/docs/source/backends.rst b/docs/source/backends.rst index ef61a13360..5e2f1c4987 100644 --- a/docs/source/backends.rst +++ b/docs/source/backends.rst @@ -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 diff --git a/docs/source/platypush/backend/light.hue.rst b/docs/source/platypush/backend/light.hue.rst deleted file mode 100644 index 4da03e10e9..0000000000 --- a/docs/source/platypush/backend/light.hue.rst +++ /dev/null @@ -1,6 +0,0 @@ -``light.hue`` -=============================== - -.. automodule:: platypush.backend.light.hue - :members: - diff --git a/platypush/backend/light/__init__.py b/platypush/backend/light/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/platypush/backend/light/hue/__init__.py b/platypush/backend/light/hue/__init__.py deleted file mode 100644 index 686e1a51bd..0000000000 --- a/platypush/backend/light/hue/__init__.py +++ /dev/null @@ -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: diff --git a/platypush/backend/light/hue/manifest.yaml b/platypush/backend/light/hue/manifest.yaml deleted file mode 100644 index 8103a7866c..0000000000 --- a/platypush/backend/light/hue/manifest.yaml +++ /dev/null @@ -1,6 +0,0 @@ -manifest: - events: - install: - pip: [] - package: platypush.backend.light.hue - type: backend