Skip to content

Commit

Permalink
change naming
Browse files Browse the repository at this point in the history
  • Loading branch information
kizniche committed Dec 12, 2023
1 parent 75a5d8f commit 13d85a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mycodo/actions/led_neopixel_flash_off.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def run_action(self, dict_vars):
if this_function:
functions = parse_function_information()
if this_function.device in functions and "function_actions" in functions[this_function.device]:
if "neopixel_start_flashing" not in functions[this_function.device]["function_actions"]:
msg = " Selected neopixel Function is not capable of setting an LED to a color"
if "neopixel_flashing_off" not in functions[this_function.device]["function_actions"]:
msg = " Selected neopixel Function is not capable of flashing"
dict_vars['message'] += msg
self.logger.error(msg)
return dict_vars
Expand Down
4 changes: 2 additions & 2 deletions mycodo/actions/led_neopixel_flash_on.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def run_action(self, dict_vars):
if this_function:
functions = parse_function_information()
if this_function.device in functions and "function_actions" in functions[this_function.device]:
if "neopixel_start_flashing" not in functions[this_function.device]["function_actions"]:
msg = " Selected neopixel Function is not capable of setting an LED to a color"
if "neopixel_flashing_on" not in functions[this_function.device]["function_actions"]:
msg = " Selected neopixel Function is not capable of flashing"
dict_vars['message'] += msg
self.logger.error(msg)
return dict_vars
Expand Down
4 changes: 2 additions & 2 deletions mycodo/functions/function_adafruit_neokey_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def execute_at_modification(

'function_actions': [
'neopixel_set_color',
'neopixel_start_flashing',
'neopixel_stop_flashing'
'neopixel_flashing_on',
'neopixel_flashing_off'
],

'custom_options': [
Expand Down

0 comments on commit 13d85a0

Please sign in to comment.