From ba1a6f33c6ac37d81f4263073571628803e79697 Mon Sep 17 00:00:00 2001 From: veista Date: Thu, 4 May 2023 22:05:54 +0300 Subject: [PATCH] Fix Setup Platforms Fixing setup platforms to conform HA 3.2023 --- custom_components/smartthings/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/smartthings/__init__.py b/custom_components/smartthings/__init__.py index bf61253..257b758 100644 --- a/custom_components/smartthings/__init__.py +++ b/custom_components/smartthings/__init__.py @@ -183,7 +183,9 @@ async def retrieve_device_status(device): ) return False - hass.config_entries.async_setup_platforms(entry, PLATFORMS) + hass.async_create_task( + hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) + ) return True