"""Common constants for NINA tests."""

from copy import deepcopy
from typing import Any

from homeassistant.components.nina.const import (
    CONF_AREA_FILTER,
    CONF_FILTERS,
    CONF_HEADLINE_FILTER,
    CONF_MESSAGE_SLOTS,
    CONF_REGIONS,
    CONST_REGION_A_TO_D,
    CONST_REGION_E_TO_H,
    CONST_REGION_I_TO_L,
    CONST_REGION_M_TO_Q,
    CONST_REGION_R_TO_U,
    CONST_REGION_V_TO_Z,
)

DUMMY_USER_INPUT: dict[str, Any] = {
    CONF_MESSAGE_SLOTS: 5,
    CONST_REGION_A_TO_D: ["095760000000_0", "095760000000_1"],
    CONST_REGION_E_TO_H: ["160650000000_14", "146260000000_0"],
    CONST_REGION_I_TO_L: ["083370000000_22", "055660000000_5"],
    CONST_REGION_M_TO_Q: ["010590000000_25", "032510000000_40"],
    CONST_REGION_R_TO_U: ["010560000000_16", "010590000000_94"],
    CONST_REGION_V_TO_Z: ["010610000000_73", "010610000000_74"],
    CONF_FILTERS: {
        CONF_HEADLINE_FILTER: ".*corona.*",
        CONF_AREA_FILTER: ".*",
    },
}

DUMMY_CONFIG_ENTRY: dict[str, Any] = {
    CONF_FILTERS: deepcopy(DUMMY_USER_INPUT[CONF_FILTERS]),
    CONF_MESSAGE_SLOTS: deepcopy(DUMMY_USER_INPUT[CONF_MESSAGE_SLOTS]),
    CONST_REGION_A_TO_D: deepcopy(DUMMY_USER_INPUT[CONST_REGION_A_TO_D]),
    CONF_REGIONS: {"095760000000": "Aach"},
}

DUMMY_CONFIG_ENTRY_DEFAULT_FILTERS: dict[str, Any] = {
    CONF_MESSAGE_SLOTS: 5,
    CONF_REGIONS: {"083350000000": "Aach, Stadt"},
    CONF_FILTERS: {
        CONF_HEADLINE_FILTER: "/(?!)/",
        CONF_AREA_FILTER: ".*",
    },
}

DUMMY_CONFIG_ENTRY_AREA_FILTERS: dict[str, Any] = {
    CONF_MESSAGE_SLOTS: 5,
    CONF_REGIONS: {"083350000000": "Aach, Stadt"},
    CONF_FILTERS: {
        CONF_HEADLINE_FILTER: "/(?!)/",
        CONF_AREA_FILTER: ".*nagold.*",
    },
}
