Clean up constants (#46948)
* Clean up constants * clean up humidifier constants * fix tests * fix prometheus tests Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
This commit is contained in:
parent
dc880118a4
commit
ab53b49d3f
31 changed files with 69 additions and 68 deletions
|
@ -7,6 +7,7 @@ import voluptuous as vol
|
|||
from homeassistant.components.lock import PLATFORM_SCHEMA, LockEntity
|
||||
from homeassistant.const import (
|
||||
ATTR_BATTERY_LEVEL,
|
||||
ATTR_DEVICE_ID,
|
||||
CONF_API_KEY,
|
||||
STATE_LOCKED,
|
||||
STATE_UNLOCKED,
|
||||
|
@ -14,7 +15,6 @@ from homeassistant.const import (
|
|||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
ATTR_DEVICE_ID = "device_id"
|
||||
ATTR_SERIAL_NO = "serial"
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({vol.Required(CONF_API_KEY): cv.string})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue