From 66d484d4ba2be189609856394869ef75f653ab80 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Fri, 28 Sep 2018 19:37:25 +0200 Subject: [PATCH] Small typo in custom sensor docs --- esphomeyaml/components/sensor/custom.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphomeyaml/components/sensor/custom.rst b/esphomeyaml/components/sensor/custom.rst index d10703759..0197df1e3 100644 --- a/esphomeyaml/components/sensor/custom.rst +++ b/esphomeyaml/components/sensor/custom.rst @@ -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);