Skip to content

Commit

Permalink
Add parallel updates & use typed config entry for Russound RIO (home-…
Browse files Browse the repository at this point in the history
  • Loading branch information
noahhusby authored Dec 11, 2024
1 parent 525614b commit d43d84a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/russound_rio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def _connection_update_callback(
return True


async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
async def async_unload_entry(hass: HomeAssistant, entry: RussoundConfigEntry) -> bool:
"""Unload a config entry."""
if unload_ok := await hass.config_entries.async_unload_platforms(entry, PLATFORMS):
await entry.runtime_data.disconnect()
Expand Down
2 changes: 2 additions & 0 deletions homeassistant/components/russound_rio/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

_LOGGER = logging.getLogger(__name__)

PARALLEL_UPDATES = 0


async def async_setup_platform(
hass: HomeAssistant,
Expand Down
6 changes: 2 additions & 4 deletions homeassistant/components/russound_rio/quality_scale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ rules:
entity-event-setup: done
entity-unique-id: done
has-entity-name: done
runtime-data:
status: todo
comment: Can use RussoundConfigEntry in async_unload_entry
runtime-data: done
test-before-configure: done
test-before-setup: done
unique-config-entry: done
Expand All @@ -42,7 +40,7 @@ rules:
status: exempt
comment: |
This integration does not require authentication.
parallel-updates: todo
parallel-updates: done
test-coverage: todo
integration-owner: done
docs-installation-parameters: todo
Expand Down

0 comments on commit d43d84a

Please sign in to comment.