Prevent connecting to a Shelly device that is already connected (#122105)

This commit is contained in:
Shay Levy 2024-07-18 23:27:03 +03:00 committed by GitHub
parent cf0aef079b
commit d2cc25cee6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 31 additions and 0 deletions

View file

@ -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(