2021-12-30 08:05:16 +00:00
|
|
|
"""Constants for the Whois integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
2022-01-24 17:50:07 +00:00
|
|
|
from datetime import timedelta
|
2021-12-30 08:05:16 +00:00
|
|
|
import logging
|
|
|
|
from typing import Final
|
|
|
|
|
2021-12-30 21:42:46 +00:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
2021-12-30 08:05:16 +00:00
|
|
|
DOMAIN: Final = "whois"
|
2021-12-30 21:42:46 +00:00
|
|
|
PLATFORMS = [Platform.SENSOR]
|
2021-12-30 08:05:16 +00:00
|
|
|
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
|
2022-01-24 17:50:07 +00:00
|
|
|
SCAN_INTERVAL = timedelta(hours=24)
|
|
|
|
|
2021-12-30 08:05:16 +00:00
|
|
|
ATTR_EXPIRES = "expires"
|
|
|
|
ATTR_NAME_SERVERS = "name_servers"
|
|
|
|
ATTR_REGISTRAR = "registrar"
|
|
|
|
ATTR_UPDATED = "updated"
|