Use core constants for starline (#46471)
This commit is contained in:
parent
b8584cab5d
commit
621c8e700b
3 changed files with 1 additions and 3 deletions
homeassistant/components/starline
|
@ -2,12 +2,12 @@
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import CONF_SCAN_INTERVAL
|
||||
from homeassistant.core import Config, HomeAssistant
|
||||
from homeassistant.exceptions import ConfigEntryNotReady
|
||||
|
||||
from .account import StarlineAccount
|
||||
from .const import (
|
||||
CONF_SCAN_INTERVAL,
|
||||
CONF_SCAN_OBD_INTERVAL,
|
||||
DEFAULT_SCAN_INTERVAL,
|
||||
DEFAULT_SCAN_OBD_INTERVAL,
|
||||
|
|
|
@ -11,7 +11,6 @@ CONF_APP_SECRET = "app_secret"
|
|||
CONF_MFA_CODE = "mfa_code"
|
||||
CONF_CAPTCHA_CODE = "captcha_code"
|
||||
|
||||
CONF_SCAN_INTERVAL = "scan_interval"
|
||||
DEFAULT_SCAN_INTERVAL = 180 # in seconds
|
||||
CONF_SCAN_OBD_INTERVAL = "scan_obd_interval"
|
||||
DEFAULT_SCAN_OBD_INTERVAL = 10800 # 3 hours in seconds
|
||||
|
|
|
@ -8,7 +8,6 @@ from .entity import StarlineEntity
|
|||
|
||||
async def async_setup_entry(hass, entry, async_add_entities):
|
||||
"""Set up the StarLine lock."""
|
||||
|
||||
account: StarlineAccount = hass.data[DOMAIN][entry.entry_id]
|
||||
entities = []
|
||||
for device in account.api.devices.values():
|
||||
|
|
Loading…
Add table
Reference in a new issue