Revert "fix: Hopefully fixes all problems"

This reverts commit c85173e0e9.
This commit is contained in:
2025-10-02 12:46:59 +01:00
parent c85173e0e9
commit 089e046fd9
7 changed files with 8 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ from homeassistant.const import Platform
# Integration metadata
DOMAIN = "adguard_hub"
MANUFACTURER = "AdGuard"
MANUFACTURER = "AdGuard" # FIXED: Added missing MANUFACTURER constant
SCAN_INTERVAL = 30
DEFAULT_PORT = 3000
DEFAULT_SSL = False

View File

@@ -35,6 +35,7 @@ class AdGuardControlHubServices:
def register_services(self) -> None:
"""Register services."""
# FIXED: All service constants are now properly defined
self.hass.services.register(
DOMAIN,
SERVICE_BLOCK_SERVICES,

View File

@@ -52,7 +52,7 @@ class AdGuardProtectionSwitch(CoordinatorEntity, SwitchEntity):
return DeviceInfo(
identifiers={(DOMAIN, "adguard_home")},
name="AdGuard Home",
manufacturer=MANUFACTURER,
manufacturer=MANUFACTURER, # FIXED: Now uses imported MANUFACTURER
model="AdGuard Home",
configuration_url=self.api.base_url,
)