snapshot fixed sems hacs component
This commit is contained in:
25
homeassistant/custom_components/sems/const.py
Normal file
25
homeassistant/custom_components/sems/const.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""Constants for the SEMS integration."""
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_SCAN_INTERVAL, CONF_USERNAME
|
||||
|
||||
DOMAIN = "sems"
|
||||
|
||||
PLATFORMS = ["sensor", "switch"]
|
||||
|
||||
CONF_STATION_ID = "powerstation_id"
|
||||
|
||||
DEFAULT_SCAN_INTERVAL = 60 # timedelta(seconds=60)
|
||||
|
||||
# Validation of the user's configuration
|
||||
SEMS_CONFIG_SCHEMA = vol.Schema(
|
||||
{
|
||||
vol.Required(CONF_USERNAME): str,
|
||||
vol.Required(CONF_PASSWORD): str,
|
||||
vol.Optional(CONF_STATION_ID): str,
|
||||
vol.Optional(
|
||||
CONF_SCAN_INTERVAL, description={"suggested_value": 60}
|
||||
): int, # , default=DEFAULT_SCAN_INTERVAL
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user