mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-28 04:17:47 +02:00
Custom Binary Sensor: Add missing ";" and fix indentation in YAML (#164)
Example would not compile while the semicolon ";" was missing.
This commit is contained in:
parent
26be1d3c22
commit
7c03e1ff8f
@ -29,7 +29,7 @@ same as the gpio binary sensor.
|
||||
// This will be called every "update_interval" milliseconds.
|
||||
|
||||
// Publish an OFF state
|
||||
bool state = digitalRead(5)
|
||||
bool state = digitalRead(5);
|
||||
publish_state(state);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user