platypush/platypush/plugins/config.py

20 lines
381 B
Python
Raw Normal View History

2020-11-21 01:12:08 +01:00
from platypush import Config
from platypush.plugins import Plugin, action
class ConfigPlugin(Plugin):
@action
def get(self) -> dict:
return Config.get()
@action
def dashboards(self) -> dict:
return Config.get_dashboards()
@action
def get_dashboard(self, name: str) -> str:
return Config.get_dashboard(name)
# vim:sw=4:ts=4:et: