documentation update

This commit is contained in:
GrKoR
2021-11-17 17:40:13 +03:00
parent c9f6dadd73
commit e7d1be632f
7 changed files with 227 additions and 346 deletions

View File

@@ -2152,7 +2152,7 @@ class AirCon : public esphome::Component, public esphome::climate::Climate {
//traits.add_supported_swing_mode(ClimateSwingMode::CLIMATE_SWING_VERTICAL);
//traits.add_supported_swing_mode(ClimateSwingMode::CLIMATE_SWING_BOTH);
traits.add_supported_preset(ClimatePreset::CLIMATE_PRESET_NONE);
traits.add_supported_preset(ClimatePreset::CLIMATE_PRESET_SLEEP);
//traits.add_supported_preset(ClimatePreset::CLIMATE_PRESET_SLEEP);
/* *************** TODO: надо сделать информирование о текущем режиме, сплит поддерживает ***************
* смотри climate::ClimateAction

View File

@@ -71,7 +71,7 @@ CUSTOM_PRESETS = {
validate_custom_presets = cv.enum(CUSTOM_PRESETS, upper=True)
def output_info(config):
_LOGGER.info(config)
"""_LOGGER.info(config)"""
return config
CONFIG_SCHEMA = cv.All(
@@ -104,6 +104,8 @@ CONFIG_SCHEMA = cv.All(
)
async def to_code(config):
"""_LOGGER.info("--------------")"""
"""_LOGGER.info(config)"""
var = cg.new_Pvariable(config[CONF_ID])
await cg.register_component(var, config)
await climate.register_climate(var, config)