Home Assistant Unofficial Reference 2024.12.1
schemas.py
Go to the documentation of this file.
1 """Voluptuous schemas for eq3btsmart."""
2 
3 from eq3btsmart.const import EQ3BT_MAX_TEMP, EQ3BT_MIN_TEMP
4 import voluptuous as vol
5 
6 from homeassistant.const import CONF_MAC
7 from homeassistant.helpers import config_validation as cv
8 
9 SCHEMA_TEMPERATURE = vol.Range(min=EQ3BT_MIN_TEMP, max=EQ3BT_MAX_TEMP)
10 SCHEMA_DEVICE = vol.Schema({vol.Required(CONF_MAC): cv.string})
11 SCHEMA_MAC = vol.Schema(
12  {
13  vol.Required(CONF_MAC): str,
14  }
15 )