Skip to content

Commit

Permalink
fix(add_devices): remove extraneous await
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Sep 2, 2019
1 parent 43acc8b commit 56eb0ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/alexa_media/helpers.py
Expand Up @@ -19,10 +19,10 @@
async def add_devices(devices: List[EntityComponent],
add_devices_callback: callable) -> bool:
"""Add devices using add_devices_callback."""
_LOGGER.debug("Adding %s", devices)
if devices:
_LOGGER.debug("Adding %s", devices)
try:
await add_devices_callback(devices, True)
add_devices_callback(devices, True)
return True
except HomeAssistantError as exception_:
message = exception_.message # type: str
Expand Down

0 comments on commit 56eb0ea

Please sign in to comment.