mirror of https://github.com/home-assistant/core
22 lines
441 B
Python
22 lines
441 B
Python
"""Constants for the Whois integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from datetime import timedelta
|
|
import logging
|
|
from typing import Final
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
DOMAIN: Final = "whois"
|
|
PLATFORMS = [Platform.SENSOR]
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
SCAN_INTERVAL = timedelta(hours=24)
|
|
|
|
ATTR_EXPIRES = "expires"
|
|
ATTR_NAME_SERVERS = "name_servers"
|
|
ATTR_REGISTRAR = "registrar"
|
|
ATTR_UPDATED = "updated"
|