From 118540db8c0c87d84f774b392c7b992acb4a6019 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 3 Feb 2021 17:41:06 +0100 Subject: [PATCH] Fixed unreferenced var --- platypush/plugins/media/ctrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/media/ctrl.py b/platypush/plugins/media/ctrl.py index 8b396f517..97e65991b 100644 --- a/platypush/plugins/media/ctrl.py +++ b/platypush/plugins/media/ctrl.py @@ -65,7 +65,7 @@ class MediaCtrlPlugin(Plugin): ] if configured_media_plugins: - plugin = get_plugin(plugin) + plugin = get_plugin(configured_media_plugins[0]) status = plugin.status().output if status.get('state') == PlayerState.PLAY.value or status.get('state') == PlayerState.PAUSE.value: return plugin