Use core constants for ohmconnect (#46413)

This commit is contained in:
tkdrob
2021-02-11 13:56:50 -05:00
committed by GitHub
parent eb0d1bb673
commit 70e23402a9

View File

@@ -7,15 +7,13 @@ import requests
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME
from homeassistant.const import CONF_ID, CONF_NAME
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
from homeassistant.util import Throttle
_LOGGER = logging.getLogger(__name__)
CONF_ID = "id"
DEFAULT_NAME = "OhmConnect Status"
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=1)