Skip to content

Commit

Permalink
Update ColorfulX7Device.py
Browse files Browse the repository at this point in the history
Fixing typos in some error reporting
  • Loading branch information
CheAhMeD authored Dec 9, 2024
1 parent 7456202 commit 82e999b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tinytuya/Contrib/ColorfulX7Device.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def set_speed(self, value):
if not 0 <= value <= 100:
return error_json(
ERR_RANGE,
"setSpeed: The value for speed needs to be between 0 and 100 (ms)."
"set_speed: The value for speed needs to be between 0 and 100 (ms)."
)
self.set_value(self.DPS_INDEX_DYNAMIC_INTV, value)

Expand Down Expand Up @@ -274,15 +274,15 @@ def set_music_mode(self, mode):
if not 1 <= mode <= 22:
return error_json(
ERR_RANGE,
"setMusicMode: The music mode needs to be between 1 and 22."
"set_music_mode: The music mode needs to be between 1 and 22."
)
self.set_value(self.DPS_INDEX_MUSIC_MODE, mode)

def set_sensitivity(self, value):
if not 0 <= value <= 100:
return error_json(
ERR_RANGE,
"setSensitivity: The music sensitivity needs to be between 0 and 100."
"set_sensitivity: The music sensitivity needs to be between 0 and 100."
)
self.set_value(self.DPS_INDEX_SENSITIVITY, value)

Expand Down Expand Up @@ -329,7 +329,7 @@ def set_screen_mode(self, mode):
if not 1 <= mode <= 30:
return error_json(
ERR_RANGE,
"setScreenMode: The screen mode needs to be between 1 and 30."
"set_screen_mode: The screen mode needs to be between 1 and 30."
)
self.set_value(self.DPS_INDEX_SCREEN_MODE, mode)

Expand Down

0 comments on commit 82e999b

Please sign in to comment.