import datetime
import logging

import voluptuous as vol

from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
import homeassistant.helpers.config_validation as cv

from .const import (
    CONF_PLANT_ID,
)

_LOGGER = logging.getLogger(__name__)

MIN_TIME_BETWEEN_UPDATES = datetime.timedelta(seconds=600)

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
    {
        vol.Required(CONF_USERNAME): cv.string,
        vol.Required(CONF_PASSWORD): cv.string,
        vol.Required(CONF_PLANT_ID): cv.string,
    }
)
[((14, 10, 14, 37), 'logging.getLogger', 'logging.getLogger', ({(14, 28, 14, 36): '__name__'}, {}), '(__name__)', False, 'import logging\n'), ((16, 27, 16, 58), 'datetime.timedelta', 'datetime.timedelta', (), '', False, 'import datetime\n'), ((20, 8, 20, 35), 'voluptuous.Required', 'vol.Required', ({(20, 21, 20, 34): 'CONF_USERNAME'}, {}), '(CONF_USERNAME)', True, 'import voluptuous as vol\n'), ((21, 8, 21, 35), 'voluptuous.Required', 'vol.Required', ({(21, 21, 21, 34): 'CONF_PASSWORD'}, {}), '(CONF_PASSWORD)', True, 'import voluptuous as vol\n'), ((22, 8, 22, 35), 'voluptuous.Required', 'vol.Required', ({(22, 21, 22, 34): 'CONF_PLANT_ID'}, {}), '(CONF_PLANT_ID)', True, 'import voluptuous as vol\n')]