forked from platypush/platypush
Extended light plugin status method signature
This commit is contained in:
parent
8a7f783032
commit
c5dc9333f0
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
from platypush.plugins import Plugin, action
|
from platypush.plugins import Plugin, action
|
||||||
|
|
||||||
|
|
||||||
class LightPlugin(Plugin):
|
class LightPlugin(Plugin):
|
||||||
"""
|
"""
|
||||||
Abstract plugin to interface your logic with lights/bulbs.
|
Abstract plugin to interface your logic with lights/bulbs.
|
||||||
|
@ -21,10 +22,9 @@ class LightPlugin(Plugin):
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
@action
|
@action
|
||||||
def status(self):
|
def status(self, *args, **kwargs):
|
||||||
""" Get the light status """
|
""" Get the light status """
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
|
|
||||||
# vim:sw=4:ts=4:et:
|
# vim:sw=4:ts=4:et:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue