MCPcopy
hub / github.com/rytilahti/python-miio / _reset_state

Method _reset_state

miio/tests/dummies.py:46–48  ·  view source on GitHub ↗

Revert back to the original state.

(self)

Source from the content-addressed store, hash-verified

44 self.ip = "192.0.2.1"
45
46 def _reset_state(self):
47 """Revert back to the original state."""
48 self.state = self.start_state.copy()
49
50 def _set_state(self, var, value):
51 """Set a state of a variable, the value is expected to be an array with length

Callers 15

test_statusMethod · 0.45
test_statusMethod · 0.45
test_statusMethod · 0.45
test_statusMethod · 0.45
test_statusMethod · 0.45
test_statusMethod · 0.45
test_statusMethod · 0.45
test_play_rawMethod · 0.45
test_play_prontoMethod · 0.45
test_play_autoMethod · 0.45
test_statusMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_statusMethod · 0.36
test_statusMethod · 0.36
test_statusMethod · 0.36
test_statusMethod · 0.36
test_statusMethod · 0.36
test_statusMethod · 0.36
test_statusMethod · 0.36
test_play_rawMethod · 0.36
test_play_prontoMethod · 0.36
test_play_autoMethod · 0.36
test_statusMethod · 0.36