mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Fix opengarage async_setup_platform (#36075)
* opengarage async_setup_platform * async_add_entities
This commit is contained in:
parent
e6065569ae
commit
9212d1c2dc
@ -55,7 +55,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
)
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||
"""Set up the OpenGarage covers."""
|
||||
covers = []
|
||||
devices = config.get(CONF_COVERS)
|
||||
@ -75,7 +75,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
|
||||
covers.append(OpenGarageCover(device_config.get(CONF_NAME), open_garage))
|
||||
|
||||
add_entities(covers, True)
|
||||
async_add_entities(covers, True)
|
||||
|
||||
|
||||
class OpenGarageCover(CoverEntity):
|
||||
|
Loading…
x
Reference in New Issue
Block a user