Cleanup dashboard JS (#491)

* Cleanup dashboard JS

* Add vscode

* Save start_mark/end_mark

* Updates

* Updates

* Remove need for cv.nameable

It's a bit hacky but removes so much bloat from integrations

* Add enum helper

* Document APIs, and Improvements

* Fixes

* Fixes

* Update PULL_REQUEST_TEMPLATE.md

* Updates

* Updates

* Updates
This commit is contained in:
Otto Winter
2019-04-22 21:56:30 +02:00
committed by GitHub
parent 6682c43dfa
commit 8e75980ebd
359 changed files with 4395 additions and 4223 deletions
@@ -7,15 +7,10 @@
namespace esphome {
namespace ultrasonic {
class UltrasonicSensorComponent : public sensor::PollingSensorComponent {
class UltrasonicSensorComponent : public sensor::Sensor, public PollingComponent {
public:
/** Construct the ultrasonic sensor with the specified trigger pin and echo pin.
*
* @param trigger_pin The trigger pin where pulses are sent to.
* @param echo_pin The echo pin where the echo is listened for.
* @param update_interval The interval in ms the sensor should check for new values.
*/
UltrasonicSensorComponent(const std::string &name, GPIOPin *trigger_pin, GPIOPin *echo_pin, uint32_t update_interval);
void set_trigger_pin(GPIOPin *trigger_pin) { trigger_pin_ = trigger_pin; }
void set_echo_pin(GPIOPin *echo_pin) { echo_pin_ = echo_pin; }
/// Set the timeout for waiting for the echo in µs.
void set_timeout_us(uint32_t timeout_us);