mirror of
https://github.com/esphome/esphome.git
synced 2024-12-29 08:51:43 +01:00
Fix whitespaces linting issues
This commit is contained in:
parent
4ba9392325
commit
6b089c27a3
2 changed files with 4 additions and 4 deletions
|
@ -31,12 +31,12 @@ class BLEServerAutomationInterface {
|
|||
static Trigger<std::string> *create_on_write_trigger(BLECharacteristic *characteristic);
|
||||
|
||||
template<typename... Ts> class BLECharacteristicSetValueAction : public Action<Ts...> {
|
||||
public:
|
||||
public:
|
||||
BLECharacteristicSetValueAction(BLECharacteristic *characteristic) : parent_(characteristic) {}
|
||||
TEMPLATABLE_VALUE(std::string, value)
|
||||
void play(Ts... x) override { this->parent_->set_value(this->value_.value(x...)); }
|
||||
|
||||
protected:
|
||||
protected:
|
||||
BLECharacteristic *parent_;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -60,12 +60,12 @@ void BLEService::do_create(BLEServer *server) {
|
|||
|
||||
void BLEService::emit_client_connect(const uint16_t conn_id) {
|
||||
if (this->on_client_connect_ && this->is_running())
|
||||
this->on_client_connect_(conn_id);
|
||||
this->on_client_connect_(conn_id);
|
||||
}
|
||||
|
||||
void BLEService::emit_client_disconnect(const uint16_t conn_id) {
|
||||
if (this->on_client_disconnect_ && this->is_running())
|
||||
this->on_client_disconnect_(conn_id);
|
||||
this->on_client_disconnect_(conn_id);
|
||||
}
|
||||
|
||||
void BLEService::do_delete() {
|
||||
|
|
Loading…
Reference in a new issue