Updated README after switching from properties to getters/setters

This commit is contained in:
Julian Müller (ChaoticByte) 2023-07-25 20:34:18 +02:00
parent c927edcd87
commit 157cc63129

View file

@ -43,12 +43,11 @@ from yahuelib.utils import rgb_to_hsv
if __name__ == "__main__":
home = GroupController.from_name("Home", "192.168.0.120", "XXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXX")
if not home.all_on:
home.all_on = True
if not home.check_all_on():
home.set_all_on(True)
color = rgb_to_hsv(255, 220, 100)
home.hue = color[0]
home.saturation = color[1]
home.brightness = 1.0
home.set_hue(color[0])
home.set_saturation(color[1])
home.set_brightness(1.0)
home.alert()
```