mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 08:05:06 +02:00
Switch the reload helper to use async_get_component (#113126)
This commit is contained in:
@@ -75,7 +75,7 @@ async def _resetup_platform(
|
|||||||
|
|
||||||
root_config[platform_domain].append(p_config)
|
root_config[platform_domain].append(p_config)
|
||||||
|
|
||||||
component = integration.get_component()
|
component = await integration.async_get_component()
|
||||||
|
|
||||||
if hasattr(component, "async_reset_platform"):
|
if hasattr(component, "async_reset_platform"):
|
||||||
# If the integration has its own way to reset
|
# If the integration has its own way to reset
|
||||||
|
Reference in New Issue
Block a user