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, 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), False, 'import logging\n'), (16, 'datetime.timedelta', 'datetime.timedelta', ([], {'seconds': '(600)'}), False, 'import datetime\n'), (20, 'voluptuous.Required', 'vol.Required', (['CONF_USERNAME'], {}), True, 'import voluptuous as vol\n'), (21, 'voluptuous.Required', 'vol.Required', (['CONF_PASSWORD'], {}), True, 'import voluptuous as vol\n'), (22, 'voluptuous.Required', 'vol.Required', (['CONF_PLANT_ID'], {}), True, 'import voluptuous as vol\n')]