Fix cloud test RuntimeWarning (#110909)

This commit is contained in:
Marc Mueller 2024-02-19 10:09:59 +01:00 committed by GitHub
parent 764e628394
commit a21d65d025
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1046,7 +1046,7 @@ async def test_enabling_remote_remote_activation_not_allowed(
client = await hass_ws_client(hass)
mock_connect = cloud.remote.connect
assert not cloud.client.remote_autostart
cloud.client.prefs.async_update(remote_allow_remote_enable=False)
await cloud.client.prefs.async_update(remote_allow_remote_enable=False)
await client.send_json({"id": 5, "type": "cloud/remote/connect"})
response = await client.receive_json()