mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +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.
|
# Quiet down pysonos logging to just actual problems.
|
||||||
logging.getLogger('pysonos').setLevel(logging.WARNING)
|
logging.getLogger('pysonos').setLevel(logging.WARNING)
|
||||||
logging.getLogger('pysonos.events').setLevel(logging.ERROR)
|
|
||||||
logging.getLogger('pysonos.data_structures_entry').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_SONOS = SUPPORT_VOLUME_SET | SUPPORT_VOLUME_MUTE |\
|
||||||
SUPPORT_PLAY | SUPPORT_PAUSE | SUPPORT_STOP | SUPPORT_SELECT_SOURCE |\
|
SUPPORT_PLAY | SUPPORT_PAUSE | SUPPORT_STOP | SUPPORT_SELECT_SOURCE |\
|
||||||
@ -289,10 +287,6 @@ def soco_error(errorcodes=None):
|
|||||||
"""Wrap for all soco UPnP exception."""
|
"""Wrap for all soco UPnP exception."""
|
||||||
from pysonos.exceptions import SoCoUPnPException, SoCoException
|
from pysonos.exceptions import SoCoUPnPException, SoCoException
|
||||||
|
|
||||||
# Temporarily disable SoCo logging because it will log the
|
|
||||||
# UPnP exception otherwise
|
|
||||||
_SOCO_SERVICES_LOGGER.disabled = True
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return funct(*args, **kwargs)
|
return funct(*args, **kwargs)
|
||||||
except SoCoUPnPException as err:
|
except SoCoUPnPException as err:
|
||||||
@ -302,8 +296,6 @@ def soco_error(errorcodes=None):
|
|||||||
_LOGGER.error("Error on %s with %s", funct.__name__, err)
|
_LOGGER.error("Error on %s with %s", funct.__name__, err)
|
||||||
except SoCoException as err:
|
except SoCoException as err:
|
||||||
_LOGGER.error("Error on %s with %s", funct.__name__, err)
|
_LOGGER.error("Error on %s with %s", funct.__name__, err)
|
||||||
finally:
|
|
||||||
_SOCO_SERVICES_LOGGER.disabled = False
|
|
||||||
|
|
||||||
return wrapper
|
return wrapper
|
||||||
return decorator
|
return decorator
|
||||||
|
@ -4,7 +4,7 @@ from homeassistant.helpers import config_entry_flow
|
|||||||
|
|
||||||
|
|
||||||
DOMAIN = 'sonos'
|
DOMAIN = 'sonos'
|
||||||
REQUIREMENTS = ['pysonos==0.0.2']
|
REQUIREMENTS = ['pysonos==0.0.3']
|
||||||
|
|
||||||
|
|
||||||
async def async_setup(hass, config):
|
async def async_setup(hass, config):
|
||||||
|
@ -1071,7 +1071,7 @@ pysma==0.2
|
|||||||
pysnmp==4.4.5
|
pysnmp==4.4.5
|
||||||
|
|
||||||
# homeassistant.components.sonos
|
# homeassistant.components.sonos
|
||||||
pysonos==0.0.2
|
pysonos==0.0.3
|
||||||
|
|
||||||
# homeassistant.components.spc
|
# homeassistant.components.spc
|
||||||
pyspcwebgw==0.4.0
|
pyspcwebgw==0.4.0
|
||||||
|
@ -169,7 +169,7 @@ pyotp==2.2.6
|
|||||||
pyqwikswitch==0.8
|
pyqwikswitch==0.8
|
||||||
|
|
||||||
# homeassistant.components.sonos
|
# homeassistant.components.sonos
|
||||||
pysonos==0.0.2
|
pysonos==0.0.3
|
||||||
|
|
||||||
# homeassistant.components.spc
|
# homeassistant.components.spc
|
||||||
pyspcwebgw==0.4.0
|
pyspcwebgw==0.4.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user