devialet 1.5.8__tar.gz → 1.5.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devialet
3
- Version: 1.5.8
3
+ Version: 1.5.9
4
4
  Summary: Devialet API
5
5
  Home-page: https://github.com/fwestenberg/devialet
6
6
  Download-URL: https://github.com/fwestenberg/devialet/releases/latest
@@ -592,7 +592,10 @@ class DevialetApi:
592
592
  return False
593
593
 
594
594
  LOGGER.debug("Action result: %s", str(result))
595
- return await self.async_upnp_play()
595
+ if await self.async_upnp_play():
596
+ return True
597
+ # The UPnP renderer can report PLAYING while paused and then refuses Play (error 701)
598
+ return await self._async_post_request(UrlSuffix.PLAY)
596
599
 
597
600
  LOGGER.error("Error playing %s: the device could not open %s", media_title, media_id)
598
601
  return False
@@ -609,7 +612,7 @@ class DevialetApi:
609
612
  try:
610
613
  await play.async_call(InstanceID=0, Speed="1")
611
614
  except UpnpActionResponseError as a:
612
- LOGGER.error("Error sending UPnP play: %s", a.error_desc)
615
+ LOGGER.debug("Error sending UPnP play: %s %s", a.error_code, a.error_desc)
613
616
  return False
614
617
  except UpnpXmlParseError as x:
615
618
  LOGGER.error("Error sending UPnP play: %s", x.text)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devialet
3
- Version: 1.5.8
3
+ Version: 1.5.9
4
4
  Summary: Devialet API
5
5
  Home-page: https://github.com/fwestenberg/devialet
6
6
  Download-URL: https://github.com/fwestenberg/devialet/releases/latest
@@ -3,7 +3,7 @@ from distutils.core import setup
3
3
  setup(
4
4
  name='devialet',
5
5
  packages=['devialet'],
6
- version='1.5.8',
6
+ version='1.5.9',
7
7
  license='MIT',
8
8
  description='Devialet API',
9
9
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes