mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
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:
parent
81d4338b93
commit
24e9c62fe7
@ -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
|
||||
|
@ -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):
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user