1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 23:21:54 +00:00

comment it

This commit is contained in:
J. Nick Koston
2025-10-30 13:07:03 -05:00
parent f6aee64ec1
commit fd8726b479

View File

@@ -84,7 +84,13 @@ class Select : public EntityBase {
/** Set the value of the select, this is a virtual method that each select integration must implement.
*
* This method is called by the SelectCall.
* This method is called by control(size_t) when not overridden, or directly by external code.
* All existing integrations implement this method. New integrations can optionally override
* control(size_t) instead to work with indices directly and avoid string conversions.
*
* Delegation chain:
* - SelectCall::perform() → control(size_t) → [if not overridden] → control(string)
* - External code → control(string) → publish_state(string) → publish_state(size_t)
*
* @param value The value as validated by the SelectCall.
*/