From 8fa7e2d1f34049beabba16dfa2e2ac767c580de7 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Sun, 18 Nov 2018 10:35:23 +0100 Subject: [PATCH] Clean-up --- miio/tests/test_philips_moonlight.py | 6 +++--- miio/tests/test_yeelight.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/miio/tests/test_philips_moonlight.py b/miio/tests/test_philips_moonlight.py index 4c4540538..77f4a79c9 100644 --- a/miio/tests/test_philips_moonlight.py +++ b/miio/tests/test_philips_moonlight.py @@ -194,13 +194,13 @@ def rgb(): self.device.set_brightness_and_rgb(20, 0) assert brightness() == 20 - assert rgb() == int_to_rgb(0) + assert rgb() == (0, 0, 0) self.device.set_brightness_and_rgb(31, 16711680) assert brightness() == 31 - assert rgb() == int_to_rgb(16711680) + assert rgb() == (255, 0, 0) self.device.set_brightness_and_rgb(100, 16777215) assert brightness() == 100 - assert rgb() == int_to_rgb(16777215) + assert rgb() == (255, 255, 255) with pytest.raises(PhilipsMoonlightException): self.device.set_brightness_and_rgb(-1, 10) diff --git a/miio/tests/test_yeelight.py b/miio/tests/test_yeelight.py index 847ac9903..9a4ce6e4c 100644 --- a/miio/tests/test_yeelight.py +++ b/miio/tests/test_yeelight.py @@ -72,6 +72,7 @@ def test_status(self): assert status.brightness == 100 assert status.color_temp == 3584 assert status.color_mode == YeelightMode.ColorTemperature + assert status.rgb is None assert status.developer_mode is True assert status.save_state_on_change is True