From 82e999b83e4a69ba94e27f4f78949bd9f2137222 Mon Sep 17 00:00:00 2001 From: Ahmed Chehaibi Date: Mon, 9 Dec 2024 10:08:01 +0100 Subject: [PATCH] Update ColorfulX7Device.py Fixing typos in some error reporting --- tinytuya/Contrib/ColorfulX7Device.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tinytuya/Contrib/ColorfulX7Device.py b/tinytuya/Contrib/ColorfulX7Device.py index 1a512f9..dafea56 100644 --- a/tinytuya/Contrib/ColorfulX7Device.py +++ b/tinytuya/Contrib/ColorfulX7Device.py @@ -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) @@ -274,7 +274,7 @@ 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) @@ -282,7 +282,7 @@ 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) @@ -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)