Skip to content

Commit

Permalink
Update extended state, too
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Jun 16, 2018
1 parent 86d729e commit 4768a51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miio/tests/test_chuangmi_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def test_off(self):
def test_status(self):
self.device._reset_state()

load_power = self.device._get_load_power().pop(0)
load_power = float(self.device._get_load_power().pop(0) * 0.01)

start_state_extended = self.device.start_state.copy()
start_state_extended['load_power'] = load_power
Expand All @@ -155,7 +155,7 @@ def test_status(self):
assert self.state().usb_power is True
assert self.state().temperature == self.device.start_state[
"temperature"]
assert self.state().load_power == load_power * 0.01
assert self.state().load_power == load_power

def test_usb_on(self):
self.device.usb_off() # ensure off
Expand Down

0 comments on commit 4768a51

Please sign in to comment.