mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 15:34:53 +01:00
whitespace and clang-format cleanup
This commit is contained in:
parent
637cc3ac6b
commit
6e5ecf72ac
3 changed files with 7 additions and 9 deletions
|
@ -15,8 +15,7 @@ ListEntitiesIterator::ListEntitiesIterator(WebServer *web_server) : web_server_(
|
||||||
bool ListEntitiesIterator::on_binary_sensor(binary_sensor::BinarySensor *binary_sensor) {
|
bool ListEntitiesIterator::on_binary_sensor(binary_sensor::BinarySensor *binary_sensor) {
|
||||||
if (!this->has_connected_client())
|
if (!this->has_connected_client())
|
||||||
return true;
|
return true;
|
||||||
return this->process(
|
return this->process(this->web_server_->binary_sensor_json(binary_sensor, binary_sensor->state, DETAIL_ALL));
|
||||||
this->web_server_->binary_sensor_json(binary_sensor, binary_sensor->state, DETAIL_ALL));
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_COVER
|
#ifdef USE_COVER
|
||||||
|
@ -65,8 +64,7 @@ bool ListEntitiesIterator::on_button(button::Button *button) {
|
||||||
bool ListEntitiesIterator::on_text_sensor(text_sensor::TextSensor *text_sensor) {
|
bool ListEntitiesIterator::on_text_sensor(text_sensor::TextSensor *text_sensor) {
|
||||||
if (!this->has_connected_client())
|
if (!this->has_connected_client())
|
||||||
return true;
|
return true;
|
||||||
return this->process(
|
return this->process(this->web_server_->text_sensor_json(text_sensor, text_sensor->state, DETAIL_ALL));
|
||||||
this->web_server_->text_sensor_json(text_sensor, text_sensor->state, DETAIL_ALL));
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_LOCK
|
#ifdef USE_LOCK
|
||||||
|
@ -145,8 +143,8 @@ bool ListEntitiesIterator::on_select(select::Select *select) {
|
||||||
bool ListEntitiesIterator::on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *a_alarm_control_panel) {
|
bool ListEntitiesIterator::on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *a_alarm_control_panel) {
|
||||||
if (!this->has_connected_client())
|
if (!this->has_connected_client())
|
||||||
return true;
|
return true;
|
||||||
return this->process(
|
return this->process(this->web_server_->alarm_control_panel_json(a_alarm_control_panel,
|
||||||
this->web_server_->alarm_control_panel_json(a_alarm_control_panel, a_alarm_control_panel->get_state(), DETAIL_ALL));
|
a_alarm_control_panel->get_state(), DETAIL_ALL));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue