Skip to content

Commit 8898fee

Browse files
committed
Fix int to float
1 parent 4626260 commit 8898fee

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tinytuya/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,9 +1246,9 @@ def set_colour(self, r, g, b):
12461246
Set colour of an rgb bulb.
12471247
12481248
Args:
1249-
r(int): Value for the colour red as int from 0-255.
1250-
g(int): Value for the colour green as int from 0-255.
1251-
b(int): Value for the colour blue as int from 0-255.
1249+
r(int): Value for the colour Red as int from 0-255.
1250+
g(int): Value for the colour Green as int from 0-255.
1251+
b(int): Value for the colour Blue as int from 0-255.
12521252
"""
12531253
if not self.has_colour:
12541254
return error_json(ERR_FUNCTION, "set_colour: Device does not support color.")
@@ -1275,9 +1275,9 @@ def set_hsv(self, h, s, v):
12751275
Set colour of an rgb bulb using h, s, v.
12761276
12771277
Args:
1278-
h(float): colour Hue as int from 0-1
1279-
s(float): colour Saturation as int from 0-1
1280-
v(float): colour Value as int from 0-1
1278+
h(float): colour Hue as float from 0-1
1279+
s(float): colour Saturation as float from 0-1
1280+
v(float): colour Value as float from 0-1
12811281
"""
12821282
if not self.has_colour:
12831283
return error_json(ERR_FUNCTION, "set_colour: Device does not support color.")

0 commit comments

Comments
 (0)