Blacklist auto_backup (#32912)

* Blacklist auto_backup

* Mock with a set
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-03-17 12:14:17 -07:00
1 parent ff582721dd
commit 7bbffa6e6d
2 files changed
+21

No files matched your search

+8
View File
@@ -20,6 +20,8 @@ DATA_DEPS_REQS = "deps_reqs_processed"
SLOW_SETUP_WARNING = 10
BLACKLIST = set(["auto_backup"])
def setup_component(hass: core.HomeAssistant, domain: str, config: ConfigType) -> bool:
"""Set up a component and all its dependencies."""
@@ -38,6 +40,12 @@ async def async_setup_component(
if domain in hass.config.components:
return True
if domain in BLACKLIST:
_LOGGER.error(
"Integration %s is blacklisted because it is causing issues.", domain
)
return False
setup_tasks = hass.data.setdefault(DATA_SETUP, {})
if domain in setup_tasks: