Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_on
Method · 0.45
test_off
Method · 0.45
test_1_on
Method · 0.45
test_2_on
Method · 0.45
test_1_off
Method · 0.45
test_2_off
Method · 0.45
test_on
Method · 0.45
test_off
Method · 0.45
test_on
Method · 0.45
test_off
Method · 0.45
test_on
Method · 0.45
test_off
Method · 0.45
Calls
1
send
Method · 0.45
Tested by
15
test_on
Method · 0.36
test_off
Method · 0.36
test_1_on
Method · 0.36
test_2_on
Method · 0.36
test_1_off
Method · 0.36
test_2_off
Method · 0.36
test_on
Method · 0.36
test_off
Method · 0.36
test_on
Method · 0.36
test_off
Method · 0.36
test_on
Method · 0.36
test_off
Method · 0.36