mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 09:44:12 +01:00
Fix linting issues
This commit is contained in:
parent
d60b3e6481
commit
3dbf3f60fe
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ Trigger<std::vector<uint8_t>> *BLETriggers::create_on_write_trigger(BLECharacter
|
|||
|
||||
void BLECharacteristicSetValueActionManager::set_listener(BLECharacteristic *characteristic,
|
||||
EventEmitterListenerID listener_id,
|
||||
std::function<void()> pre_notify_listener) {
|
||||
const std::function<void()>& pre_notify_listener) {
|
||||
// Check if there is already a listener for this characteristic
|
||||
if (this->listeners_.count(characteristic) > 0) {
|
||||
// Unpack the pair listener_id, pre_notify_listener_id
|
||||
|
|
|
@ -37,7 +37,7 @@ class BLECharacteristicSetValueActionManager
|
|||
return &instance;
|
||||
}
|
||||
void set_listener(BLECharacteristic *characteristic, EventEmitterListenerID listener_id,
|
||||
std::function<void()> pre_notify_listener);
|
||||
const std::function<void()>& pre_notify_listener);
|
||||
EventEmitterListenerID get_listener(BLECharacteristic *characteristic) {
|
||||
return this->listeners_[characteristic].first;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue