name
All checks were successful
Deploy powerbar.ti Frontend Portal / Deploy-Tinance2-Frontend-Portal-Production (push) Successful in 36s

This commit is contained in:
Matthew Frost 2024-01-27 22:42:41 +01:00
parent 0f6abec652
commit 233e335c02

View file

@ -205,6 +205,7 @@ def powerbars_list():
cleaned_outlet = {}
state = powerbars[powerbar]['outlets'][outlet].get('state', 'unknown')
cleaned_outlet['name'] = powerbars[powerbar]['outlets'][outlet]['name']
cleaned_outlet['state'] = state
cleaned_outlet['on_url'] = f"/{powerbar}/{outlet}/on"
cleaned_outlet['off_url'] = f"/{powerbar}/{outlet}/off"