mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Make devolo home control more robust against connection losts (#48328)
This commit is contained in:
parent
984fb12fa4
commit
2fbe352ad5
@ -49,7 +49,7 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry) -> bool
|
||||
)
|
||||
)
|
||||
)
|
||||
except (ConnectionError, GatewayOfflineError) as err:
|
||||
except GatewayOfflineError as err:
|
||||
raise ConfigEntryNotReady from err
|
||||
|
||||
for platform in PLATFORMS:
|
||||
|
@ -2,7 +2,7 @@
|
||||
"domain": "devolo_home_control",
|
||||
"name": "devolo Home Control",
|
||||
"documentation": "https://www.home-assistant.io/integrations/devolo_home_control",
|
||||
"requirements": ["devolo-home-control-api==0.17.0"],
|
||||
"requirements": ["devolo-home-control-api==0.17.1"],
|
||||
"after_dependencies": ["zeroconf"],
|
||||
"config_flow": true,
|
||||
"codeowners": ["@2Fake", "@Shutgun"],
|
||||
|
@ -479,7 +479,7 @@ deluge-client==1.7.1
|
||||
denonavr==0.9.10
|
||||
|
||||
# homeassistant.components.devolo_home_control
|
||||
devolo-home-control-api==0.17.0
|
||||
devolo-home-control-api==0.17.1
|
||||
|
||||
# homeassistant.components.directv
|
||||
directv==0.4.0
|
||||
|
@ -261,7 +261,7 @@ defusedxml==0.6.0
|
||||
denonavr==0.9.10
|
||||
|
||||
# homeassistant.components.devolo_home_control
|
||||
devolo-home-control-api==0.17.0
|
||||
devolo-home-control-api==0.17.1
|
||||
|
||||
# homeassistant.components.directv
|
||||
directv==0.4.0
|
||||
|
@ -39,17 +39,6 @@ async def test_setup_entry_maintenance(hass: HomeAssistant):
|
||||
assert entry.state == ENTRY_STATE_SETUP_RETRY
|
||||
|
||||
|
||||
async def test_setup_connection_error(hass: HomeAssistant):
|
||||
"""Test setup entry fails on connection error."""
|
||||
entry = configure_integration(hass)
|
||||
with patch(
|
||||
"homeassistant.components.devolo_home_control.HomeControl",
|
||||
side_effect=ConnectionError,
|
||||
):
|
||||
await hass.config_entries.async_setup(entry.entry_id)
|
||||
assert entry.state == ENTRY_STATE_SETUP_RETRY
|
||||
|
||||
|
||||
async def test_setup_gateway_offline(hass: HomeAssistant):
|
||||
"""Test setup entry fails on gateway offline."""
|
||||
entry = configure_integration(hass)
|
||||
|
Loading…
x
Reference in New Issue
Block a user