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,
    }
)
[((286, 313), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (303, 313), False, 'import logging\n'), ((342, 373), 'datetime.timedelta', 'datetime.timedelta', ([], {'seconds': '(600)'}), '(seconds=600)\n', (360, 373), False, 'import datetime\n'), ((431, 458), 'voluptuous.Required', 'vol.Required', (['CONF_USERNAME'], {}), '(CONF_USERNAME)\n', (443, 458), True, 'import voluptuous as vol\n'), ((479, 506), 'voluptuous.Required', 'vol.Required', (['CONF_PASSWORD'], {}), '(CONF_PASSWORD)\n', (491, 506), True, 'import voluptuous as vol\n'), ((527, 554), 'voluptuous.Required', 'vol.Required', (['CONF_PLANT_ID'], {}), '(CONF_PLANT_ID)\n', (539, 554), True, 'import voluptuous as vol\n')]