import type { ISimpleLocalConfig, ISimpleLocalIntegrationProfile, ISimpleLocalSnapshot, TSimpleLocalRawData } from '../../core/index.js';

export const arrisTg2492lgDomain = "arris_tg2492lg";
export const arrisTg2492lgDefaultName = "Arris TG2492LG";

export type TArrisTg2492lgRawData = TSimpleLocalRawData;
export interface IArrisTg2492lgSnapshot extends ISimpleLocalSnapshot {}
export interface IArrisTg2492lgConfig extends ISimpleLocalConfig {}
export interface IHomeAssistantArrisTg2492lgConfig extends IArrisTg2492lgConfig {}

export const arrisTg2492lgProfile: ISimpleLocalIntegrationProfile = {
  domain: "arris_tg2492lg",
  displayName: "Arris TG2492LG",
  manufacturer: "Arris",
  model: "TG2492LG",
  defaultName: "Arris TG2492LG",
  defaultPort: 80,
  defaultProtocol: "http",
  status: "read-only-runtime",
  platforms: [
    "sensor",
    "binary_sensor"
  ],
  serviceDomains: [],
  controlServices: [],
  discoverySources: [
    "manual",
    "mdns",
    "ssdp",
    "http",
    "custom"
  ],
  discoveryKeywords: [
    "arris",
    "tg2492lg",
    "router"
  ],
  metadata: {
    source: "home-assistant/core",
    upstreamPath: "homeassistant/components/arris_tg2492lg",
    upstreamDomain: "arris_tg2492lg",
    integrationType: "hub",
    iotClass: "local_polling",
    qualityScale: "legacy",
    requirements: [
      "arris-tg2492lg==2.2.0"
    ],
    dependencies: [],
    afterDependencies: [],
    codeowners: [],
    configFlow: true,
    runtime: {
      type: "read-only-runtime",
      services: [
        "snapshot",
        "status",
        "refresh"
      ],
      platforms: [
        "sensor",
        "binary_sensor"
      ],
      controls: false
    },
    localApi: {
      implemented: [
        "manual local endpoint setup",
        "snapshot, raw data, snapshotProvider, and injected native client operation",
        "generic HTTP/TCP local transport when config.path, config.transport, or documented defaults are supplied"
      ],
      explicitUnsupported: [
        "claiming live command success without injected client.execute or commandExecutor",
        "cloud account flows and remote API polling",
        "device-specific protocol features not represented by snapshot/rawData/client/executor inputs"
      ]
    }
  }
};
