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

Method is_on

miio/tests/test_chuangmi_plug.py:119–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117@pytest.mark.usefixtures("chuangmiplugv3")
118class TestChuangmiPlugV3(TestCase):
119 def is_on(self):
120 return self.device.status().is_on
121
122 def state(self):
123 return self.device.status()

Callers 3

test_onMethod · 0.95
test_offMethod · 0.95
test_statusMethod · 0.95

Calls 1

statusMethod · 0.45

Tested by

no test coverage detected