Fix sonos default errorcodes (#12582)

This commit is contained in:
Anders Melchiorsen 2018-02-21 21:11:14 +01:00 committed by GitHub
parent f9ee29a5cd
commit ed1a883b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,7 +271,7 @@ def soco_error(errorcodes=None):
try:
return funct(*args, **kwargs)
except SoCoUPnPException as err:
if err.error_code in errorcodes:
if errorcodes and err.error_code in errorcodes:
pass
else:
_LOGGER.error("Error on %s with %s", funct.__name__, err)