mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Small typo in custom sensor docs
This commit is contained in:
parent
458962cd3c
commit
66d484d4ba
@ -166,7 +166,7 @@ In your global ``setup()`` method, after you've setup all other components, do t
|
||||
// =========== AUTO GENERATED CODE END ============
|
||||
// ========= YOU CAN EDIT AFTER THIS LINE =========
|
||||
|
||||
auto *custom_sensor = new CustomSensor(5000); // update every 5000ms or every 5 seconds.
|
||||
auto *custom_sensor = new CustomSensor("My Custom Sensor", 5000); // update every 5000ms or every 5 seconds.
|
||||
App.register_component(custom_sensor);
|
||||
App.register_sensor(custom_sensor);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user