Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Overseerr integration #133981

Merged
merged 10 commits into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix
  • Loading branch information
joostlek committed Dec 28, 2024
commit 9cac073370a0393da90c703f12cd9db792f0e03c
6 changes: 5 additions & 1 deletion homeassistant/components/overseerr/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@
"""Fetch data from API endpoint."""
try:
return await self.client.get_request_count()
except OverseerrConnectionError as err:
raise UpdateFailed(f"Error communicating with API: {err}") from err
raise UpdateFailed(

Check warning on line 46 in homeassistant/components/overseerr/coordinator.py

View check run for this annotation

Codecov / codecov/patch

homeassistant/components/overseerr/coordinator.py#L45-L46

Added lines #L45 - L46 were not covered by tests
translation_domain=DOMAIN,
translation_key="connection_error",
translation_placeholders={"error": str(err)},
) from err
2 changes: 1 addition & 1 deletion homeassistant/components/overseerr/quality_scale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ rules:
entity-device-class: todo
entity-disabled-by-default: todo
entity-translations: done
exception-translations: todo
exception-translations: done
icon-translations: todo
reconfiguration-flow: todo
repair-issues:
Expand Down
5 changes: 5 additions & 0 deletions homeassistant/components/overseerr/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,10 @@
"name": "Available requests"
}
}
},
"exceptions": {
"connection_error": {
"message": "Error connecting to the Overseerr instance: {error}"
}
}
}