Fix opengarage async_setup_platform (#36075)

* opengarage async_setup_platform

* async_add_entities
This commit is contained in:
Daniel Høyer Iversen 2020-05-24 14:28:54 +02:00 committed by GitHub
parent e6065569ae
commit 9212d1c2dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):