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

Method __init__

miio/tests/test_chuangmi_plug.py:186–193  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

184
185class DummyChuangmiPlugM1(DummyDevice, ChuangmiPlug):
186 def __init__(self, *args, **kwargs):
187 self._model = MODEL_CHUANGMI_PLUG_M1
188 self.state = {"power": "on", "temperature": 32}
189 self.return_values = {
190 "get_prop": self._get_state,
191 "set_power": lambda x: self._set_state("power", x),
192 }
193 super().__init__(args, kwargs)
194
195
196@pytest.fixture(scope="class")

Callers

nothing calls this directly

Calls 2

_set_stateMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected