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

Enable strict type checks of cloud (#92576)

* Enable strict type checks of cloud

* Fix circular import

* Address review comments

* Apply suggestions from code review
This commit is contained in:
Erik Montnemery
2023-05-24 11:46:11 +02:00
committed by GitHub
parent a8ce4d3c66
commit 937ebb374c
20 changed files with 324 additions and 196 deletions

View File

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