mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00

* Update eq3btsmart to 2.1.0 * Update import names * Update register callbacks * Updated data model * Update Thermostat set value methods * Update Thermostat init * Thermostat status and device_data are always given * Minor compatibility fixes --------- Co-authored-by: Lennard Beers <l.beers@outlook.de>
16 lines
431 B
Python
16 lines
431 B
Python
"""Voluptuous schemas for eq3btsmart."""
|
|
|
|
from eq3btsmart.const import EQ3_MAX_TEMP, EQ3_MIN_TEMP
|
|
import voluptuous as vol
|
|
|
|
from homeassistant.const import CONF_MAC
|
|
from homeassistant.helpers import config_validation as cv
|
|
|
|
SCHEMA_TEMPERATURE = vol.Range(min=EQ3_MIN_TEMP, max=EQ3_MAX_TEMP)
|
|
SCHEMA_DEVICE = vol.Schema({vol.Required(CONF_MAC): cv.string})
|
|
SCHEMA_MAC = vol.Schema(
|
|
{
|
|
vol.Required(CONF_MAC): str,
|
|
}
|
|
)
|