hass-core/homeassistant/components/whois/const.py
Franck Nijhof 1d03313bf5
Remove deprecated YAML configuration from Whois (#67163)
* Remove deprecated YAML configuration from Whois

* Clean up platform schema
2022-02-24 10:03:42 +01:00

20 lines
440 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"