Skip to content

Commit

Permalink
Bump russound to 0.2.0 (#125743)
Browse files Browse the repository at this point in the history
* Update russound library to fix BrokenPipeError

* Remove library from license expection list
  • Loading branch information
akrabi authored Sep 11, 2024
1 parent 09dd647 commit f42bc3a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/russound_rnet/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"documentation": "https://www.home-assistant.io/integrations/russound_rnet",
"iot_class": "local_polling",
"loggers": ["russound"],
"requirements": ["russound==0.1.9"]
"requirements": ["russound==0.2.0"]
}
8 changes: 7 additions & 1 deletion homeassistant/components/russound_rnet/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ def update(self) -> None:
# Updated this function to make a single call to get_zone_info, so that
# with a single call we can get On/Off, Volume and Source, reducing the
# amount of traffic and speeding up the update process.
ret = self._russ.get_zone_info(self._controller_id, self._zone_id, 4)
try:
ret = self._russ.get_zone_info(self._controller_id, self._zone_id, 4)
except BrokenPipeError:
_LOGGER.error("Broken Pipe Error, trying to reconnect to Russound RNET")
self._russ.connect()
ret = self._russ.get_zone_info(self._controller_id, self._zone_id, 4)

_LOGGER.debug("ret= %s", ret)
if ret is not None:
_LOGGER.debug(
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2567,7 +2567,7 @@ rpi-bad-power==0.1.0
rtsp-to-webrtc==0.5.1

# homeassistant.components.russound_rnet
russound==0.1.9
russound==0.2.0

# homeassistant.components.ruuvitag_ble
ruuvitag-ble==0.1.2
Expand Down
1 change: 0 additions & 1 deletion script/licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ def from_dict(cls, data: dict[str, str]) -> PackageDefinition:
"pyvera", # https://github.com/maximvelichko/pyvera/pull/164
"pyxeoma", # https://github.com/jeradM/pyxeoma/pull/11
"repoze.lru",
"russound", # https://github.com/laf/russound/pull/14 # codespell:ignore laf
"ruuvitag-ble", # https://github.com/Bluetooth-Devices/ruuvitag-ble/pull/10
"sensirion-ble", # https://github.com/akx/sensirion-ble/pull/9
"sharp_aquos_rc", # https://github.com/jmoore987/sharp_aquos_rc/pull/14
Expand Down

0 comments on commit f42bc3a

Please sign in to comment.