refactor: Refactoring most of the project
Some checks failed
🧪 Integration Testing / 🔧 Test Integration (2025.9.4, 3.13) (push) Failing after 24s

Signed-off-by: Rafal Zielinski <sq4ind@gmail.com>
This commit is contained in:
2025-09-28 15:34:46 +01:00
parent 13905df0ee
commit 4553eb454a
18 changed files with 180 additions and 259 deletions

View File

@@ -182,7 +182,8 @@ class AdGuardControlHubServices:
]
for service in services:
self.hass.services.remove(DOMAIN, service)
if self.hass.services.has_service(DOMAIN, service):
self.hass.services.remove(DOMAIN, service)
def _get_api_for_entry(self, entry_id: str) -> AdGuardHomeAPI:
"""Get API instance for a specific config entry."""