1
mirror of https://github.com/home-assistant/core synced 2024-08-06 09:34:49 +02:00

Use core constants for wemo and whois (#46548)

This commit is contained in:
tkdrob 2021-02-14 20:14:48 -05:00 committed by GitHub
parent a3b733f1ec
commit 06c8fc6ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,14 +6,12 @@ import voluptuous as vol
import whois
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME, TIME_DAYS
from homeassistant.const import CONF_DOMAIN, CONF_NAME, TIME_DAYS
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
_LOGGER = logging.getLogger(__name__)
CONF_DOMAIN = "domain"
DEFAULT_NAME = "Whois"
ATTR_EXPIRES = "expires"