From 3d62c3cfbd27978e60e62f7a0a37a5ed671fbdb8 Mon Sep 17 00:00:00 2001 From: "Alan D. Tse" Date: Tue, 31 Jan 2023 21:38:51 -0800 Subject: [PATCH] fix: switch to async_forward_entry_setups closes #499 --- custom_components/tesla_custom/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/tesla_custom/__init__.py b/custom_components/tesla_custom/__init__.py index 57482708..54e78f35 100644 --- a/custom_components/tesla_custom/__init__.py +++ b/custom_components/tesla_custom/__init__.py @@ -264,7 +264,7 @@ def _async_create_close_task(): await coordinator.async_config_entry_first_refresh() - hass.config_entries.async_setup_platforms(config_entry, PLATFORMS) + await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS) return True