Add CONF_LOCATION constant (#68474)

* Add CONF_LOCATION constant

* Update all custom CONF_LOCATION definitions to point to constant

* remove CONF_LOCATION from homeassistant/components/totalconnect/const
This commit is contained in:
Raman Gupta 2022-03-26 00:10:54 -04:00 committed by GitHub
parent 911b159281
commit aa013fa8f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 11 additions and 17 deletions

View file

@ -4,12 +4,10 @@ from total_connect_client.exceptions import AuthenticationError
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
from homeassistant.const import CONF_LOCATION, CONF_PASSWORD, CONF_USERNAME
from .const import CONF_USERCODES, DOMAIN
CONF_LOCATION = "location"
PASSWORD_DATA_SCHEMA = vol.Schema({vol.Required(CONF_PASSWORD): str})