1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add cloud_connected method to CloudClient (#91997)

* Add cloud_connected method to CloudClient

* Add cloud_disconnected method

* Update client.py
This commit is contained in:
Erik Montnemery
2023-06-20 17:15:13 +02:00
committed by GitHub
parent 50605e62bd
commit b600c2cd85
4 changed files with 4 additions and 8 deletions

View File

@@ -137,7 +137,7 @@ async def test_on_connect(hass: HomeAssistant, mock_cloud_fixture) -> None:
"""Test cloud on connect triggers."""
cl: Cloud[cloud.client.CloudClient] = hass.data["cloud"]
assert len(cl.iot._on_connect) == 4
assert len(cl.iot._on_connect) == 3
assert len(hass.states.async_entity_ids("binary_sensor")) == 0