Fix homematicip_cloud tests that have uncaught exceptions (#33371)

This commit is contained in:
SukramJ authored and GitHub committed 2020-03-28 21:01:53 -07:00
1 parent 42cb5a5239
commit 3c2df7f8f2
5 files changed
+38 -24

No files matched your search

+13 -1
View File
@@ -3,6 +3,7 @@ from asynctest import CoroutineMock, MagicMock, Mock, patch
from homematicip.aio.auth import AsyncAuth
from homematicip.aio.connection import AsyncConnection
from homematicip.aio.home import AsyncHome
from homematicip.base.enums import WeatherCondition, WeatherDayTime
import pytest
from homeassistant import config_entries
@@ -115,10 +116,21 @@ def simple_mock_home_fixture():
devices=[],
groups=[],
location=Mock(),
weather=Mock(create=True),
weather=Mock(
temperature=0.0,
weatherCondition=WeatherCondition.UNKNOWN,
weatherDayTime=WeatherDayTime.DAY,
minTemperature=0.0,
maxTemperature=0.0,
humidity=0,
windSpeed=0.0,
windDirection=0,
vaporAmount=0.0,
),
id=42,
dutyCycle=88,
connected=True,
currentAPVersion="2.0.36",
)
with patch(