Clean up constants (#46924)

* Clean up constants

* fix imports
This commit is contained in:
tkdrob 2021-02-23 03:56:44 -05:00 committed by GitHub
parent 08889a9819
commit 4fdb617e22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 31 additions and 37 deletions

View file

@ -1,6 +1,6 @@
"""Constants for the habitica integration."""
from homeassistant.const import CONF_NAME, CONF_PATH
from homeassistant.const import CONF_PATH
CONF_API_USER = "api_user"
@ -8,7 +8,6 @@ DEFAULT_URL = "https://habitica.com"
DOMAIN = "habitica"
SERVICE_API_CALL = "api_call"
ATTR_NAME = CONF_NAME
ATTR_PATH = CONF_PATH
ATTR_ARGS = "args"
EVENT_API_CALL_SUCCESS = f"{DOMAIN}_{SERVICE_API_CALL}_success"