Use separate line for return statement in hue_activate_scene (#41709)

This commit is contained in:
fnurgel 2020-10-12 13:40:26 +02:00 committed by GitHub
parent 3e41c682f4
commit bf57035880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,8 @@ async def async_setup(hass, config):
# Note that we'll get a "None" value for a successful call # Note that we'll get a "None" value for a successful call
if None not in results: if None not in results:
if skip_reload: if skip_reload:
return await hue_activate_scene(call, skip_reload=False) await hue_activate_scene(call, skip_reload=False)
return
_LOGGER.warning( _LOGGER.warning(
"No bridge was able to activate " "scene %s in group %s", "No bridge was able to activate " "scene %s in group %s",
scene_name, scene_name,