soco 0.31.2__tar.gz → 0.31.3__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.
Files changed (215) hide show
  1. {soco-0.31.2/soco.egg-info → soco-0.31.3}/PKG-INFO +1 -1
  2. {soco-0.31.2 → soco-0.31.3}/soco/__init__.py +1 -1
  3. {soco-0.31.2 → soco-0.31.3}/soco/core.py +20 -4
  4. {soco-0.31.2 → soco-0.31.3/soco.egg-info}/PKG-INFO +1 -1
  5. {soco-0.31.2 → soco-0.31.3}/tests/test_core.py +20 -1
  6. {soco-0.31.2 → soco-0.31.3}/AUTHORS.rst +0 -0
  7. {soco-0.31.2 → soco-0.31.3}/LICENSE.rst +0 -0
  8. {soco-0.31.2 → soco-0.31.3}/MANIFEST.in +0 -0
  9. {soco-0.31.2 → soco-0.31.3}/README.rst +0 -0
  10. {soco-0.31.2 → soco-0.31.3}/dev_tools/analyse_ws.ini +0 -0
  11. {soco-0.31.2 → soco-0.31.3}/dev_tools/analyse_ws.py +0 -0
  12. {soco-0.31.2 → soco-0.31.3}/dev_tools/pychecker.bat +0 -0
  13. {soco-0.31.2 → soco-0.31.3}/dev_tools/pychecker.sh +0 -0
  14. {soco-0.31.2 → soco-0.31.3}/dev_tools/sonosdump.py +0 -0
  15. {soco-0.31.2 → soco-0.31.3}/doc/Makefile +0 -0
  16. {soco-0.31.2 → soco-0.31.3}/doc/_static/imageMapResizer.min.js +0 -0
  17. {soco-0.31.2 → soco-0.31.3}/doc/_templates/page.html +0 -0
  18. {soco-0.31.2 → soco-0.31.3}/doc/advanced/data-structures-mod.rst +0 -0
  19. {soco-0.31.2 → soco-0.31.3}/doc/advanced/events.rst +0 -0
  20. {soco-0.31.2 → soco-0.31.3}/doc/advanced/events_asyncio.rst +0 -0
  21. {soco-0.31.2 → soco-0.31.3}/doc/advanced/events_twisted.rst +0 -0
  22. {soco-0.31.2 → soco-0.31.3}/doc/advanced/index.rst +0 -0
  23. {soco-0.31.2 → soco-0.31.3}/doc/advanced/services.rst +0 -0
  24. {soco-0.31.2 → soco-0.31.3}/doc/advanced/topology.rst +0 -0
  25. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.alarms.rst +0 -0
  26. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.cache.rst +0 -0
  27. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.config.rst +0 -0
  28. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.core.rst +0 -0
  29. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.data_structures.rst +0 -0
  30. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.discovery.rst +0 -0
  31. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.events.rst +0 -0
  32. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.exceptions.rst +0 -0
  33. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.groups.rst +0 -0
  34. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.ms_data_structures.rst +0 -0
  35. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.music_library.rst +0 -0
  36. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.music_services.accounts.rst +0 -0
  37. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.music_services.music_service.rst +0 -0
  38. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.music_services.rst +0 -0
  39. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.music_services.token_store.rst +0 -0
  40. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.plugins.example.rst +0 -0
  41. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.plugins.plex.rst +0 -0
  42. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.plugins.rst +0 -0
  43. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.plugins.sharelink.rst +0 -0
  44. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.plugins.spotify.rst +0 -0
  45. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.plugins.wimp.rst +0 -0
  46. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.rst +0 -0
  47. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.services.rst +0 -0
  48. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.snapshot.rst +0 -0
  49. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.soap.rst +0 -0
  50. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.utils.rst +0 -0
  51. {soco-0.31.2 → soco-0.31.3}/doc/api/soco.xml.rst +0 -0
  52. {soco-0.31.2 → soco-0.31.3}/doc/authors.rst +0 -0
  53. {soco-0.31.2 → soco-0.31.3}/doc/conf.py +0 -0
  54. {soco-0.31.2 → soco-0.31.3}/doc/development/index.rst +0 -0
  55. {soco-0.31.2 → soco-0.31.3}/doc/development/release-howto.rst +0 -0
  56. {soco-0.31.2 → soco-0.31.3}/doc/development/unittests.rst +0 -0
  57. {soco-0.31.2 → soco-0.31.3}/doc/examples.rst +0 -0
  58. {soco-0.31.2 → soco-0.31.3}/doc/faq.rst +0 -0
  59. {soco-0.31.2 → soco-0.31.3}/doc/getting_started.rst +0 -0
  60. {soco-0.31.2 → soco-0.31.3}/doc/graphics/data_structures.png +0 -0
  61. {soco-0.31.2 → soco-0.31.3}/doc/graphics/data_structures.svg +0 -0
  62. {soco-0.31.2 → soco-0.31.3}/doc/index.rst +0 -0
  63. {soco-0.31.2 → soco-0.31.3}/doc/make.bat +0 -0
  64. {soco-0.31.2 → soco-0.31.3}/doc/plugins.rst +0 -0
  65. {soco-0.31.2 → soco-0.31.3}/doc/release_notes.rst +0 -0
  66. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.10.rst +0 -0
  67. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.11.1.rst +0 -0
  68. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.11.rst +0 -0
  69. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.12.rst +0 -0
  70. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.13.rst +0 -0
  71. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.14.rst +0 -0
  72. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.15.rst +0 -0
  73. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.16.rst +0 -0
  74. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.17.rst +0 -0
  75. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.18.rst +0 -0
  76. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.19.rst +0 -0
  77. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.20.rst +0 -0
  78. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.21.rst +0 -0
  79. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.22.rst +0 -0
  80. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.23.rst +0 -0
  81. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.24.rst +0 -0
  82. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.25.rst +0 -0
  83. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.26.rst +0 -0
  84. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.27.rst +0 -0
  85. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.28.rst +0 -0
  86. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.29.rst +0 -0
  87. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.30.rst +0 -0
  88. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.31.0.rst +0 -0
  89. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.6.rst +0 -0
  90. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.7.rst +0 -0
  91. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.8.rst +0 -0
  92. {soco-0.31.2 → soco-0.31.3}/doc/releases/0.9.rst +0 -0
  93. {soco-0.31.2 → soco-0.31.3}/doc/releases/index.rst +0 -0
  94. {soco-0.31.2 → soco-0.31.3}/doc/requirements.txt +0 -0
  95. {soco-0.31.2 → soco-0.31.3}/doc/tutorial.rst +0 -0
  96. {soco-0.31.2 → soco-0.31.3}/examples/commandline/README.rst +0 -0
  97. {soco-0.31.2 → soco-0.31.3}/examples/commandline/discover.py +0 -0
  98. {soco-0.31.2 → soco-0.31.3}/examples/commandline/screenshot.png +0 -0
  99. {soco-0.31.2 → soco-0.31.3}/examples/commandline/tunein.py +0 -0
  100. {soco-0.31.2 → soco-0.31.3}/examples/events_asyncio_verify_listener_fix.py +0 -0
  101. {soco-0.31.2 → soco-0.31.3}/examples/play_local_files/play_local_files.py +0 -0
  102. {soco-0.31.2 → soco-0.31.3}/examples/plugins/socoplugins.py +0 -0
  103. {soco-0.31.2 → soco-0.31.3}/examples/snapshot/basic_snap.py +0 -0
  104. {soco-0.31.2 → soco-0.31.3}/examples/snapshot/multi_zone_snap.py +0 -0
  105. {soco-0.31.2 → soco-0.31.3}/examples/webapp/.gitignore +0 -0
  106. {soco-0.31.2 → soco-0.31.3}/examples/webapp/README.md +0 -0
  107. {soco-0.31.2 → soco-0.31.3}/examples/webapp/index.py +0 -0
  108. {soco-0.31.2 → soco-0.31.3}/examples/webapp/requirements.txt +0 -0
  109. {soco-0.31.2 → soco-0.31.3}/examples/webapp/screenshot.png +0 -0
  110. {soco-0.31.2 → soco-0.31.3}/examples/webapp/settings.py.example +0 -0
  111. {soco-0.31.2 → soco-0.31.3}/examples/webapp/static/css/bootstrap.min.css +0 -0
  112. {soco-0.31.2 → soco-0.31.3}/examples/webapp/static/css/main.css +0 -0
  113. {soco-0.31.2 → soco-0.31.3}/examples/webapp/static/img/blank.jpg +0 -0
  114. {soco-0.31.2 → soco-0.31.3}/examples/webapp/static/img/glyphicons-halflings-white.png +0 -0
  115. {soco-0.31.2 → soco-0.31.3}/examples/webapp/static/img/glyphicons-halflings.png +0 -0
  116. {soco-0.31.2 → soco-0.31.3}/examples/webapp/static/js/bootstrap.min.js +0 -0
  117. {soco-0.31.2 → soco-0.31.3}/examples/webapp/static/js/jquery.min.js +0 -0
  118. {soco-0.31.2 → soco-0.31.3}/examples/webapp/templates/index.html +0 -0
  119. {soco-0.31.2 → soco-0.31.3}/makefile +0 -0
  120. {soco-0.31.2 → soco-0.31.3}/pylintrc +0 -0
  121. {soco-0.31.2 → soco-0.31.3}/pyproject.toml +0 -0
  122. {soco-0.31.2 → soco-0.31.3}/requirements-dev.txt +0 -0
  123. {soco-0.31.2 → soco-0.31.3}/requirements.txt +0 -0
  124. {soco-0.31.2 → soco-0.31.3}/setup.cfg +0 -0
  125. {soco-0.31.2 → soco-0.31.3}/setup.py +0 -0
  126. {soco-0.31.2 → soco-0.31.3}/soco/alarms.py +0 -0
  127. {soco-0.31.2 → soco-0.31.3}/soco/cache.py +0 -0
  128. {soco-0.31.2 → soco-0.31.3}/soco/config.py +0 -0
  129. {soco-0.31.2 → soco-0.31.3}/soco/data_structure_quirks.py +0 -0
  130. {soco-0.31.2 → soco-0.31.3}/soco/data_structures.py +0 -0
  131. {soco-0.31.2 → soco-0.31.3}/soco/data_structures_entry.py +0 -0
  132. {soco-0.31.2 → soco-0.31.3}/soco/discovery.py +0 -0
  133. {soco-0.31.2 → soco-0.31.3}/soco/events.py +0 -0
  134. {soco-0.31.2 → soco-0.31.3}/soco/events_asyncio.py +0 -0
  135. {soco-0.31.2 → soco-0.31.3}/soco/events_base.py +0 -0
  136. {soco-0.31.2 → soco-0.31.3}/soco/events_twisted.py +0 -0
  137. {soco-0.31.2 → soco-0.31.3}/soco/exceptions.py +0 -0
  138. {soco-0.31.2 → soco-0.31.3}/soco/groups.py +0 -0
  139. {soco-0.31.2 → soco-0.31.3}/soco/ms_data_structures.py +0 -0
  140. {soco-0.31.2 → soco-0.31.3}/soco/music_library.py +0 -0
  141. {soco-0.31.2 → soco-0.31.3}/soco/music_services/__init__.py +0 -0
  142. {soco-0.31.2 → soco-0.31.3}/soco/music_services/accounts.py +0 -0
  143. {soco-0.31.2 → soco-0.31.3}/soco/music_services/data_structures.py +0 -0
  144. {soco-0.31.2 → soco-0.31.3}/soco/music_services/music_service.py +0 -0
  145. {soco-0.31.2 → soco-0.31.3}/soco/music_services/token_store.py +0 -0
  146. {soco-0.31.2 → soco-0.31.3}/soco/plugins/__init__.py +0 -0
  147. {soco-0.31.2 → soco-0.31.3}/soco/plugins/example.py +0 -0
  148. {soco-0.31.2 → soco-0.31.3}/soco/plugins/plex.py +0 -0
  149. {soco-0.31.2 → soco-0.31.3}/soco/plugins/sharelink.py +0 -0
  150. {soco-0.31.2 → soco-0.31.3}/soco/plugins/spotify.py +0 -0
  151. {soco-0.31.2 → soco-0.31.3}/soco/plugins/wimp.py +0 -0
  152. {soco-0.31.2 → soco-0.31.3}/soco/services.py +0 -0
  153. {soco-0.31.2 → soco-0.31.3}/soco/snapshot.py +0 -0
  154. {soco-0.31.2 → soco-0.31.3}/soco/soap.py +0 -0
  155. {soco-0.31.2 → soco-0.31.3}/soco/utils.py +0 -0
  156. {soco-0.31.2 → soco-0.31.3}/soco/xml.py +0 -0
  157. {soco-0.31.2 → soco-0.31.3}/soco/zonegroupstate.py +0 -0
  158. {soco-0.31.2 → soco-0.31.3}/soco.egg-info/SOURCES.txt +0 -0
  159. {soco-0.31.2 → soco-0.31.3}/soco.egg-info/dependency_links.txt +0 -0
  160. {soco-0.31.2 → soco-0.31.3}/soco.egg-info/requires.txt +0 -0
  161. {soco-0.31.2 → soco-0.31.3}/soco.egg-info/top_level.txt +0 -0
  162. {soco-0.31.2 → soco-0.31.3}/tests/conftest.py +0 -0
  163. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/album.json +0 -0
  164. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/album.xml +0 -0
  165. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/album_compilation.xml +0 -0
  166. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/album_favorite.xml +0 -0
  167. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/album_list.xml +0 -0
  168. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/artist.json +0 -0
  169. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/artist.xml +0 -0
  170. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/audio_broadcast.json +0 -0
  171. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/audio_broadcast.xml +0 -0
  172. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/composer.json +0 -0
  173. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/composer.xml +0 -0
  174. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/genre.json +0 -0
  175. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/genre.xml +0 -0
  176. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/playlist.json +0 -0
  177. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/playlist.xml +0 -0
  178. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/playlist_favorite.xml +0 -0
  179. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/radio_show.json +0 -0
  180. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/radio_show.xml +0 -0
  181. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/recent_show.xml +0 -0
  182. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/same_artist.xml +0 -0
  183. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/share.json +0 -0
  184. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/share.xml +0 -0
  185. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/source_linein.xml +0 -0
  186. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/track.json +0 -0
  187. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/track.xml +0 -0
  188. {soco-0.31.2 → soco-0.31.3}/tests/data/data_structures_entry_integration/tracklist.xml +0 -0
  189. {soco-0.31.2 → soco-0.31.3}/tests/data/media_metadata_payloads/bbc.json +0 -0
  190. {soco-0.31.2 → soco-0.31.3}/tests/data/media_metadata_payloads/cifs.json +0 -0
  191. {soco-0.31.2 → soco-0.31.3}/tests/data/media_metadata_payloads/pandora.json +0 -0
  192. {soco-0.31.2 → soco-0.31.3}/tests/data/media_metadata_payloads/sonos_radio.json +0 -0
  193. {soco-0.31.2 → soco-0.31.3}/tests/data/media_metadata_payloads/tunein.json +0 -0
  194. {soco-0.31.2 → soco-0.31.3}/tests/data/media_metadata_payloads/tunein_2.json +0 -0
  195. {soco-0.31.2 → soco-0.31.3}/tests/official_and_extended_didl_classes.txt +0 -0
  196. {soco-0.31.2 → soco-0.31.3}/tests/soco_unittest.py +0 -0
  197. {soco-0.31.2 → soco-0.31.3}/tests/test_alarms.py +0 -0
  198. {soco-0.31.2 → soco-0.31.3}/tests/test_cache.py +0 -0
  199. {soco-0.31.2 → soco-0.31.3}/tests/test_data_structures_entry_integration.py +0 -0
  200. {soco-0.31.2 → soco-0.31.3}/tests/test_discovery.py +0 -0
  201. {soco-0.31.2 → soco-0.31.3}/tests/test_events.py +0 -0
  202. {soco-0.31.2 → soco-0.31.3}/tests/test_events_asyncio.py +0 -0
  203. {soco-0.31.2 → soco-0.31.3}/tests/test_integration.py +0 -0
  204. {soco-0.31.2 → soco-0.31.3}/tests/test_metadata_parsing.py +0 -0
  205. {soco-0.31.2 → soco-0.31.3}/tests/test_ms_data_structures.py +0 -0
  206. {soco-0.31.2 → soco-0.31.3}/tests/test_music_library.py +0 -0
  207. {soco-0.31.2 → soco-0.31.3}/tests/test_music_service_data_structures.py +0 -0
  208. {soco-0.31.2 → soco-0.31.3}/tests/test_musicservices.py +0 -0
  209. {soco-0.31.2 → soco-0.31.3}/tests/test_new_datastructures.py +0 -0
  210. {soco-0.31.2 → soco-0.31.3}/tests/test_services.py +0 -0
  211. {soco-0.31.2 → soco-0.31.3}/tests/test_singleton.py +0 -0
  212. {soco-0.31.2 → soco-0.31.3}/tests/test_snapshot.py +0 -0
  213. {soco-0.31.2 → soco-0.31.3}/tests/test_soap.py +0 -0
  214. {soco-0.31.2 → soco-0.31.3}/tests/test_utils.py +0 -0
  215. {soco-0.31.2 → soco-0.31.3}/tests/test_xml.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soco
3
- Version: 0.31.2
3
+ Version: 0.31.3
4
4
  Summary: SoCo (Sonos Controller) is a simple library to control Sonos speakers.
5
5
  Author-email: The SoCo-Team <python-soco@googlegroups.com>
6
6
  License: MIT License
@@ -17,7 +17,7 @@ from .exceptions import SoCoException, UnknownSoCoException
17
17
  __author__ = "The SoCo-Team <python-soco@googlegroups.com>"
18
18
  # Please increment the version number and add the suffix "-dev" after
19
19
  # a release, to make it possible to identify in-development code
20
- __version__ = "0.31.2"
20
+ __version__ = "0.31.3"
21
21
  __website__ = "https://github.com/SoCo/SoCo"
22
22
  __license__ = "MIT License"
23
23
 
@@ -567,6 +567,18 @@ class SoCo(_SocoSingletonBase):
567
567
 
568
568
  return self.speaker_info["model_name"].lower().endswith(ARC_ULTRA_PRODUCT_NAME)
569
569
 
570
+ @property
571
+ def is_ultra_soundbar(self):
572
+ """bool: Is this zone an Ultra sound bar (Arc Ultra, Beam Ultra)?
573
+
574
+ Ultra sound bars expose a 5-level dialog level and a separate
575
+ speech enhancement on/off switch.
576
+ """
577
+ if not self.speaker_info:
578
+ self.get_speaker_info()
579
+
580
+ return self.speaker_info["model_name"].lower().endswith(ULTRA_SOUNDBARS)
581
+
570
582
  @property
571
583
  def play_mode(self):
572
584
  """str: The queue's play mode.
@@ -1495,7 +1507,7 @@ class SoCo(_SocoSingletonBase):
1495
1507
 
1496
1508
  True if on, False if off, None if not supported.
1497
1509
  """
1498
- if not self.is_arc_ultra_soundbar:
1510
+ if not self.is_ultra_soundbar:
1499
1511
  return None
1500
1512
 
1501
1513
  response = self.renderingControl.GetEQ(
@@ -1505,16 +1517,17 @@ class SoCo(_SocoSingletonBase):
1505
1517
 
1506
1518
  @speech_enhance_enabled.setter
1507
1519
  def speech_enhance_enabled(self, speech_mode):
1508
- """Switch on/off the arc ultra soundbar speech enhancement.
1520
+ """Switch on/off the Ultra soundbar speech enhancement.
1509
1521
 
1510
1522
  :param speech_mode: Enable or disable dialog mode
1511
1523
  :type speech_mode: bool
1512
1524
  :raises NotSupportedException: If the device does not support
1513
1525
  speech enhancement.
1514
1526
  """
1515
- if not self.is_arc_ultra_soundbar:
1527
+ if not self.is_ultra_soundbar:
1516
1528
  raise NotSupportedException(
1517
- "The device not a arc ultra and doesn't support speech_enhance_enabled."
1529
+ "The device is not an Ultra soundbar and doesn't support "
1530
+ "speech_enhance_enabled."
1518
1531
  )
1519
1532
  self.renderingControl.SetEQ(
1520
1533
  [
@@ -3102,6 +3115,7 @@ SOUNDBARS = (
3102
3115
  "arc sl",
3103
3116
  "arc ultra",
3104
3117
  "beam",
3118
+ "beam ultra",
3105
3119
  "playbase",
3106
3120
  "playbar",
3107
3121
  "ray",
@@ -3109,6 +3123,8 @@ SOUNDBARS = (
3109
3123
  )
3110
3124
 
3111
3125
  ARC_ULTRA_PRODUCT_NAME = "arc ultra"
3126
+ BEAM_ULTRA_PRODUCT_NAME = "beam ultra"
3127
+ ULTRA_SOUNDBARS = (ARC_ULTRA_PRODUCT_NAME, BEAM_ULTRA_PRODUCT_NAME)
3112
3128
 
3113
3129
  if config.SOCO_CLASS is None:
3114
3130
  config.SOCO_CLASS = SoCo
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soco
3
- Version: 0.31.2
3
+ Version: 0.31.3
4
4
  Summary: SoCo (Sonos Controller) is a simple library to control Sonos speakers.
5
5
  Author-email: The SoCo-Team <python-soco@googlegroups.com>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ import requests_mock
4
4
 
5
5
  from conftest import IP_ADDR
6
6
  from soco import SoCo
7
- from soco.core import ARC_ULTRA_PRODUCT_NAME
7
+ from soco.core import ARC_ULTRA_PRODUCT_NAME, BEAM_ULTRA_PRODUCT_NAME
8
8
  from soco.data_structures import to_didl_string
9
9
  from soco.exceptions import (
10
10
  SoCoSlaveException,
@@ -407,6 +407,8 @@ class TestSoco:
407
407
  ("Sonos Playbase", True),
408
408
  ("Sonos Arc", True),
409
409
  ("Sonos Arc SL", True),
410
+ ("Sonos Arc Ultra", True),
411
+ ("Sonos Beam Ultra", True),
410
412
  ),
411
413
  )
412
414
  def test_soco_is_soundbar(self, moco, model_name):
@@ -546,6 +548,23 @@ class TestSoco:
546
548
  [("InstanceID", 0), ("EQType", "SpeechEnhanceEnabled"), ("DesiredValue", 1)]
547
549
  )
548
550
 
551
+ # Beam Ultra exposes the same speech enhancement switch
552
+ moco_zgs.speaker_info["model_name"] = (
553
+ "speaker prefix " + BEAM_ULTRA_PRODUCT_NAME
554
+ )
555
+ moco_zgs.renderingControl.GetEQ.reset_mock()
556
+ moco_zgs.renderingControl.GetEQ.return_value = {"CurrentValue": "1"}
557
+ assert moco_zgs.speech_enhance_enabled == 1
558
+ moco_zgs.renderingControl.GetEQ.assert_called_once_with(
559
+ [("InstanceID", 0), ("EQType", "SpeechEnhanceEnabled")]
560
+ )
561
+
562
+ moco_zgs.renderingControl.SetEQ.reset_mock()
563
+ moco_zgs.speech_enhance_enabled = 0
564
+ moco_zgs.renderingControl.SetEQ.assert_called_once_with(
565
+ [("InstanceID", 0), ("EQType", "SpeechEnhanceEnabled"), ("DesiredValue", 0)]
566
+ )
567
+
549
568
 
550
569
  class TestAVTransport:
551
570
  @pytest.mark.parametrize(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes