Add 'All' and 'steps' as categories

This commit is contained in:
avollkopf 2023-04-02 13:05:48 +02:00
parent a70c63edf4
commit 5f3e3ea60d
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,3 @@
__version__ = "4.1.8.a1"
__version__ = "4.1.8.a2"
__codename__ = "Groundhog Day"

View file

@ -219,7 +219,9 @@ class PluginController():
async def load_plugin_names(self, filter="cbpi"):
result = []
result.append(dict(Name="craftbeerpi"))
result.append(dict(label="All", value="All"))
result.append(dict(label="craftbeerpi", value="craftbeerpi"))
result.append(dict(label="steps", value="steps"))
try:
discovered_plugins = {
name: importlib.import_module(name)
@ -231,7 +233,7 @@ class PluginController():
try:
meta = metadata(key)
if meta["Name"] != "cbpi4gui":
result.append(dict(Name=meta["Name"]))
result.append(dict(label=meta["Name"], value=meta["Name"]))
except Exception as e:
logger.error("FAILED to load plugin {} ".format(key))