Extended light plugin status method signature

This commit is contained in:
Fabio Manganiello 2020-10-28 23:19:16 +01:00
parent 8a7f783032
commit c5dc9333f0

View file

@ -1,5 +1,6 @@
from platypush.plugins import Plugin, action
class LightPlugin(Plugin):
"""
Abstract plugin to interface your logic with lights/bulbs.
@ -21,10 +22,9 @@ class LightPlugin(Plugin):
raise NotImplementedError()
@action
def status(self):
def status(self, *args, **kwargs):
""" Get the light status """
raise NotImplementedError()
# vim:sw=4:ts=4:et: