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

Method on

miio/gateway/alarm.py:21–23  ·  view source on GitHub ↗

Turn alarm on.

(self)

Source from the content-addressed store, hash-verified

19 return self._gateway.send("get_arming").pop()
20
21 def on(self):
22 """Turn alarm on."""
23 return self._gateway.send("set_arming", ["on"])
24
25 def off(self):
26 """Turn alarm off."""

Callers 15

test_onMethod · 0.45
test_offMethod · 0.45
test_1_onMethod · 0.45
test_2_onMethod · 0.45
test_1_offMethod · 0.45
test_2_offMethod · 0.45
test_onMethod · 0.45
test_offMethod · 0.45
test_onMethod · 0.45
test_offMethod · 0.45
test_onMethod · 0.45
test_offMethod · 0.45

Calls 1

sendMethod · 0.45

Tested by 15

test_onMethod · 0.36
test_offMethod · 0.36
test_1_onMethod · 0.36
test_2_onMethod · 0.36
test_1_offMethod · 0.36
test_2_offMethod · 0.36
test_onMethod · 0.36
test_offMethod · 0.36
test_onMethod · 0.36
test_offMethod · 0.36
test_onMethod · 0.36
test_offMethod · 0.36