fix: Fix CI/CD issues and enhance integration
Some checks failed
Integration Testing / Integration Tests (2024.12.0, 3.11) (push) Failing after 22s
Integration Testing / Integration Tests (2024.12.0, 3.12) (push) Failing after 21s
Integration Testing / Integration Tests (2024.12.0, 3.13) (push) Failing after 1m32s
Integration Testing / Integration Tests (2025.9.4, 3.11) (push) Failing after 15s
Integration Testing / Integration Tests (2025.9.4, 3.12) (push) Failing after 20s
Integration Testing / Integration Tests (2025.9.4, 3.13) (push) Failing after 20s
Some checks failed
Integration Testing / Integration Tests (2024.12.0, 3.11) (push) Failing after 22s
Integration Testing / Integration Tests (2024.12.0, 3.12) (push) Failing after 21s
Integration Testing / Integration Tests (2024.12.0, 3.13) (push) Failing after 1m32s
Integration Testing / Integration Tests (2025.9.4, 3.11) (push) Failing after 15s
Integration Testing / Integration Tests (2025.9.4, 3.12) (push) Failing after 20s
Integration Testing / Integration Tests (2025.9.4, 3.13) (push) Failing after 20s
Signed-off-by: Rafal Zielinski <sq4ind@gmail.com>
This commit is contained in:
@@ -4,6 +4,7 @@ from typing import Final
|
||||
# Integration details
|
||||
DOMAIN: Final = "adguard_hub"
|
||||
MANUFACTURER: Final = "AdGuard Control Hub"
|
||||
INTEGRATION_NAME: Final = "AdGuard Control Hub"
|
||||
|
||||
# Configuration
|
||||
CONF_SSL: Final = "ssl"
|
||||
@@ -27,17 +28,19 @@ API_ENDPOINTS: Final = {
|
||||
"status": "/control/status",
|
||||
"clients": "/control/clients",
|
||||
"clients_add": "/control/clients/add",
|
||||
"clients_update": "/control/clients/update",
|
||||
"clients_update": "/control/clients/update",
|
||||
"clients_delete": "/control/clients/delete",
|
||||
"blocked_services_all": "/control/blocked_services/all",
|
||||
"protection": "/control/protection",
|
||||
"stats": "/control/stats",
|
||||
"rewrite": "/control/rewrite/list",
|
||||
"querylog": "/control/querylog",
|
||||
}
|
||||
|
||||
# Available blocked services
|
||||
# Available blocked services (common ones)
|
||||
BLOCKED_SERVICES: Final = {
|
||||
"youtube": "YouTube",
|
||||
"facebook": "Facebook",
|
||||
"facebook": "Facebook",
|
||||
"netflix": "Netflix",
|
||||
"gaming": "Gaming Services",
|
||||
"instagram": "Instagram",
|
||||
@@ -52,6 +55,19 @@ BLOCKED_SERVICES: Final = {
|
||||
"whatsapp": "WhatsApp",
|
||||
"telegram": "Telegram",
|
||||
"discord": "Discord",
|
||||
"amazon": "Amazon",
|
||||
"ebay": "eBay",
|
||||
"skype": "Skype",
|
||||
"zoom": "Zoom",
|
||||
"tinder": "Tinder",
|
||||
"pinterest": "Pinterest",
|
||||
"linkedin": "LinkedIn",
|
||||
"dailymotion": "Dailymotion",
|
||||
"vimeo": "Vimeo",
|
||||
"viber": "Viber",
|
||||
"wechat": "WeChat",
|
||||
"ok": "Odnoklassniki",
|
||||
"vk": "VKontakte",
|
||||
}
|
||||
|
||||
# Service attributes
|
||||
@@ -59,9 +75,22 @@ ATTR_CLIENT_NAME: Final = "client_name"
|
||||
ATTR_SERVICES: Final = "services"
|
||||
ATTR_DURATION: Final = "duration"
|
||||
ATTR_CLIENTS: Final = "clients"
|
||||
ATTR_ENABLED: Final = "enabled"
|
||||
|
||||
# Icons
|
||||
ICON_PROTECTION: Final = "mdi:shield"
|
||||
ICON_PROTECTION_OFF: Final = "mdi:shield-off"
|
||||
ICON_CLIENT: Final = "mdi:devices"
|
||||
ICON_STATISTICS: Final = "mdi:chart-line"
|
||||
ICON_BLOCKED: Final = "mdi:shield-check"
|
||||
ICON_QUERIES: Final = "mdi:dns"
|
||||
ICON_PERCENTAGE: Final = "mdi:percent"
|
||||
ICON_CLIENTS: Final = "mdi:account-multiple"
|
||||
|
||||
# Service names
|
||||
SERVICE_BLOCK_SERVICES: Final = "block_services"
|
||||
SERVICE_UNBLOCK_SERVICES: Final = "unblock_services"
|
||||
SERVICE_EMERGENCY_UNBLOCK: Final = "emergency_unblock"
|
||||
SERVICE_ADD_CLIENT: Final = "add_client"
|
||||
SERVICE_REMOVE_CLIENT: Final = "remove_client"
|
||||
SERVICE_REFRESH_DATA: Final = "refresh_data"
|
||||
|
Reference in New Issue
Block a user