Skip to content

Commit

Permalink
Fix halfmetre light.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Dec 5, 2023
1 parent 361c588 commit 97c07b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def switch_light(light, state):
return _toggle_leds(daemons.superwasp_power, 'light', account, state)

if (light in ['halfmetre', 'serverroom']) and 'satellites' in account['permissions']:
return _toggle_leds(daemons.halfmetre_power, 'ilight' if light == 'wasp1' else 'clight', account, state)
return _toggle_leds(daemons.halfmetre_power, 'ilight' if light == 'halfmetre' else 'clight', account, state)

if light == 'clasp' and 'satellites' in account['permissions']:
return _toggle_leds(daemons.clasp_power, 'light', account, state)
Expand Down

0 comments on commit 97c07b7

Please sign in to comment.