mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-23 21:51:53 +01:00
Fix log message for select docs (#1413)
This commit is contained in:
parent
405ac8c6c7
commit
92f15f8275
@ -116,7 +116,7 @@ advanced stuff (see the full API Reference for more info).
|
||||
.. code-block:: cpp
|
||||
|
||||
// For example, create a custom log message when an option is selected:
|
||||
ESP_LOGI("main", "Option of my select: %f", id(my_select).state);
|
||||
ESP_LOGI("main", "Option of my select: %s", id(my_select).state.c_str());
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
Loading…
Reference in New Issue
Block a user