Skip to content

Conversation

@ludeeus
Copy link
Member

@ludeeus ludeeus commented Nov 2, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 2, 2025 19:45
@ludeeus ludeeus changed the title Refactor exception handling in HacsRepository to use the new API client Refactor handling in HacsRepository to use the new API client Nov 2, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the GitHub API integration by replacing the legacy AIOGitHubAPINotModifiedException exception with the newer GitHubNotModifiedException, and modernizes the async_get_legacy_repository_object method to use the new githubapi interface instead of the deprecated get_repo method.

Key changes:

  • Updated exception handling to use GitHubNotModifiedException instead of AIOGitHubAPINotModifiedException
  • Refactored async_get_legacy_repository_object to use the new self.hacs.githubapi.repos.get() API
  • Simplified exception handling by removing redundant exception types from the catch block

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants