Skip to content

Commit ff0fc98

Browse files
authored
Fix sfr_box entry reload (home-assistant#156593)
1 parent 9f78a22 commit ff0fc98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

homeassistant/components/sfr_box/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: SFRConfigEntry) -> bool:
8181

8282
async def async_unload_entry(hass: HomeAssistant, entry: SFRConfigEntry) -> bool:
8383
"""Unload a config entry."""
84+
if entry.data.get(CONF_USERNAME) and entry.data.get(CONF_PASSWORD):
85+
return await hass.config_entries.async_unload_platforms(
86+
entry, PLATFORMS_WITH_AUTH
87+
)
8488
return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)

0 commit comments

Comments
 (0)