name
All checks were successful
Deploy powerbar.ti Frontend Portal / Deploy-Tinance2-Frontend-Portal-Production (push) Successful in 36s
All checks were successful
Deploy powerbar.ti Frontend Portal / Deploy-Tinance2-Frontend-Portal-Production (push) Successful in 36s
This commit is contained in:
parent
0f6abec652
commit
233e335c02
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue