Fix opengarage async_setup_platform (#36075)
* opengarage async_setup_platform * async_add_entities
This commit is contained in:
parent
e6065569ae
commit
9212d1c2dc
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue