Skip to content

Commit

Permalink
Fixed a bug where "Custom MQTT" mode of NSPanel settings for button 2…
Browse files Browse the repository at this point in the history
… would not be saved
  • Loading branch information
tpanajott committed Dec 7, 2024
1 parent 4d27bf7 commit 53ad7a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/web/nspanelmanager/web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def save_panel_settings(request, panel_id: int):
else:
panel.button2_detached_mode_light = None

if request.POST["button1_mode"] == "2": # Custom MQTT Mode
if request.POST["button2_mode"] == "2": # Custom MQTT Mode
set_nspanel_setting_value(
panel_id, "button2_mqtt_topic", request.POST["button2_custom_mqtt_topic"])
set_nspanel_setting_value(
Expand Down

0 comments on commit 53ad7a4

Please sign in to comment.