Skip to content

Commit

Permalink
Fix opengarage async_setup_platform (home-assistant#36075)
Browse files Browse the repository at this point in the history
* opengarage async_setup_platform

* async_add_entities
  • Loading branch information
Danielhiversen authored May 24, 2020
1 parent e606556 commit 9212d1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/opengarage/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
)


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)
Expand All @@ -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):
Expand Down

0 comments on commit 9212d1c

Please sign in to comment.