diff --git a/chch-power.py b/chch-power.py index 7d2a4e2..4834da1 100644 --- a/chch-power.py +++ b/chch-power.py @@ -72,7 +72,6 @@ def switch_unpressed(event): # toggle current room's power with a short and a long press # call a script with two short and a long press def switch_longpressed(event): - chch_status_output() shortpress_delay = pin_last_rise_date[event.pin_num] - pin_last_shortpress[event.pin_num] if shortpress_delay > inter_press_max_delay: pin_shortpress_count[event.pin_num] = 0 @@ -86,7 +85,6 @@ def switch_longpressed(event): # switch all power off with a very long press # switch all power on with a short and a very long press def switch_verylongpressed(event): - chch_status_output() shortpress_delay = pin_last_rise_date[event.pin_num] - pin_last_shortpress[event.pin_num] if shortpress_delay > inter_press_max_delay: pin_shortpress_count[event.pin_num] = 0