Skip to content

Commit

Permalink
Clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Nov 18, 2018
1 parent 24e1fd0 commit 8fa7e2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions miio/tests/test_philips_moonlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions miio/tests/test_yeelight.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8fa7e2d

Please sign in to comment.