Upgrade pysonos to 0.0.3 (#16901)

This version has downgraded/removed some logging that we then no
longer have to hide.
This commit is contained in:
Anders Melchiorsen 2018-09-27 01:09:30 +02:00 committed by GitHub
parent 81d4338b93
commit 24e9c62fe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 11 deletions

View File

@ -33,9 +33,7 @@ _LOGGER = logging.getLogger(__name__)
# Quiet down pysonos logging to just actual problems.
logging.getLogger('pysonos').setLevel(logging.WARNING)
logging.getLogger('pysonos.events').setLevel(logging.ERROR)
logging.getLogger('pysonos.data_structures_entry').setLevel(logging.ERROR)
_SOCO_SERVICES_LOGGER = logging.getLogger('pysonos.services')
SUPPORT_SONOS = SUPPORT_VOLUME_SET | SUPPORT_VOLUME_MUTE |\
SUPPORT_PLAY | SUPPORT_PAUSE | SUPPORT_STOP | SUPPORT_SELECT_SOURCE |\
@ -289,10 +287,6 @@ def soco_error(errorcodes=None):
"""Wrap for all soco UPnP exception."""
from pysonos.exceptions import SoCoUPnPException, SoCoException
# Temporarily disable SoCo logging because it will log the
# UPnP exception otherwise
_SOCO_SERVICES_LOGGER.disabled = True
try:
return funct(*args, **kwargs)
except SoCoUPnPException as err:
@ -302,8 +296,6 @@ def soco_error(errorcodes=None):
_LOGGER.error("Error on %s with %s", funct.__name__, err)
except SoCoException as err:
_LOGGER.error("Error on %s with %s", funct.__name__, err)
finally:
_SOCO_SERVICES_LOGGER.disabled = False
return wrapper
return decorator

View File

@ -4,7 +4,7 @@ from homeassistant.helpers import config_entry_flow
DOMAIN = 'sonos'
REQUIREMENTS = ['pysonos==0.0.2']
REQUIREMENTS = ['pysonos==0.0.3']
async def async_setup(hass, config):

View File

@ -1071,7 +1071,7 @@ pysma==0.2
pysnmp==4.4.5
# homeassistant.components.sonos
pysonos==0.0.2
pysonos==0.0.3
# homeassistant.components.spc
pyspcwebgw==0.4.0

View File

@ -169,7 +169,7 @@ pyotp==2.2.6
pyqwikswitch==0.8
# homeassistant.components.sonos
pysonos==0.0.2
pysonos==0.0.3
# homeassistant.components.spc
pyspcwebgw==0.4.0