"""Constants for AdGuard Control Hub.""" from homeassistant.const import Platform # Integration metadata DOMAIN = "adguard_hub" MANUFACTURER = "AdGuard" SCAN_INTERVAL = 30 DEFAULT_PORT = 3000 DEFAULT_SSL = False DEFAULT_VERIFY_SSL = True # Configuration keys CONF_SSL = "ssl" CONF_VERIFY_SSL = "verify_ssl" # Platforms PLATFORMS = [ Platform.SWITCH, Platform.BINARY_SENSOR, Platform.SENSOR, ] # Entity attributes ATTR_CLIENT_NAME = "client_name" ATTR_SERVICES = "services" ATTR_DURATION = "duration" ATTR_CLIENTS = "clients" ATTR_ENABLED = "enabled" # Service names SERVICE_BLOCK_SERVICES = "block_services" SERVICE_UNBLOCK_SERVICES = "unblock_services" SERVICE_EMERGENCY_UNBLOCK = "emergency_unblock" SERVICE_ADD_CLIENT = "add_client" SERVICE_REMOVE_CLIENT = "remove_client" SERVICE_REFRESH_DATA = "refresh_data" # API endpoints API_ENDPOINTS = { "status": "/control/status", "clients": "/control/clients", "stats": "/control/stats", "protection": "/control/protection", "clients_add": "/control/clients/add", "clients_update": "/control/clients/update", "clients_delete": "/control/clients/delete", "blocked_services_all": "/control/blocked_services/all", } # Available services for blocking BLOCKED_SERVICES = { "youtube": "YouTube", "netflix": "Netflix", "gaming": "Gaming Services", "facebook": "Facebook", "twitter": "Twitter", "instagram": "Instagram", "snapchat": "Snapchat", "telegram": "Telegram", "whatsapp": "WhatsApp", "discord": "Discord", "skype": "Skype", "linkedin": "LinkedIn", "pinterest": "Pinterest", "reddit": "Reddit", "tiktok": "TikTok", "amazon_prime": "Amazon Prime Video", "disney_plus": "Disney+", "hulu": "Hulu", "spotify": "Spotify", "twitch": "Twitch", "steam": "Steam", "epic_games": "Epic Games", "xbox_live": "Xbox Live", }