Prevent connecting to a Shelly device that is already connected (#122105)
This commit is contained in:
parent
cf0aef079b
commit
d2cc25cee6
8 changed files with 31 additions and 0 deletions
|
@ -334,6 +334,7 @@ async def test_rpc_sleeping_update(
|
|||
monkeypatch: pytest.MonkeyPatch,
|
||||
) -> None:
|
||||
"""Test RPC sleeping device update entity."""
|
||||
monkeypatch.setattr(mock_rpc_device, "connected", False)
|
||||
monkeypatch.setitem(mock_rpc_device.status["sys"], "wakeup_period", 1000)
|
||||
monkeypatch.setitem(mock_rpc_device.shelly, "ver", "1")
|
||||
monkeypatch.setitem(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue