Update gogogate2 to be async (#42066)
This commit is contained in:
parent
a50fba4e0b
commit
ae3d038baa
9 changed files with 29 additions and 33 deletions
|
@ -25,7 +25,7 @@ async def test_config_update(gogogate2api_mock, hass: HomeAssistant) -> None:
|
|||
"""Test config setup where the config is updated."""
|
||||
|
||||
api = MagicMock(GogoGate2Api)
|
||||
api.info.side_effect = Exception("Error")
|
||||
api.async_info.side_effect = Exception("Error")
|
||||
gogogate2api_mock.return_value = api
|
||||
|
||||
config_entry = MockConfigEntry(
|
||||
|
@ -53,7 +53,7 @@ async def test_config_update(gogogate2api_mock, hass: HomeAssistant) -> None:
|
|||
async def test_config_no_update(ismartgateapi_mock, hass: HomeAssistant) -> None:
|
||||
"""Test config setup where the data is not updated."""
|
||||
api = MagicMock(GogoGate2Api)
|
||||
api.info.side_effect = Exception("Error")
|
||||
api.async_info.side_effect = Exception("Error")
|
||||
ismartgateapi_mock.return_value = api
|
||||
|
||||
config_entry = MockConfigEntry(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue