Skip to content

Commit

Permalink
Use a specific code path.
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Nov 26, 2017
1 parent 9f1e4c1 commit 779bb83
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions miio/tests/test_airpurifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,10 @@ def child_lock():
def test_status_without_led_b_and_with_bright(self):
self.device._reset_state()

self.device.state["bright"] = self.device.state["led_b"]
del self.device.state["led_b"]
self.device.state["bright"] = 1

assert self.state().led_brightness == LedBrightness(
self.device.start_state["led_b"])
assert self.state().led_brightness == LedBrightness(1)

def test_status_without_led_brightness_at_all(self):
self.device._reset_state()
Expand Down

0 comments on commit 779bb83

Please sign in to comment.