mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 11:44:13 +01:00
d16eff5039
* Add mopeka standard tank sensor. * Enhance mopeka ble to find standard sensors. * Updated `CODEOWNERS` file * Move default from cpp to py. * Format documents with esphome settings. * Linter wants changes. * Update name of `get_lpg_speed_of_sound`. * manually update `CODEOWNERS`. * Manually update CODEOWNER, because `build_codeowners.py. is failing. * Add comments. * Use percentage for `propane_butane_mix`. * add config to `dump_config()` * Formatting * Use struct for data parsing and find best data. * Add `this`. * Consistant naming of configuration. * Fix format issues. * Make clang-tidy happy. * Adjust loop variable. --------- Co-authored-by: Your Name <you@example.com>
27 lines
602 B
C++
27 lines
602 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "esphome/components/esp32_ble_tracker/esp32_ble_tracker.h"
|
|
#include "esphome/core/component.h"
|
|
|
|
#ifdef USE_ESP32
|
|
|
|
namespace esphome {
|
|
namespace mopeka_ble {
|
|
|
|
class MopekaListener : public esp32_ble_tracker::ESPBTDeviceListener {
|
|
public:
|
|
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override;
|
|
void set_show_sensors_without_sync(bool show_sensors_without_sync) {
|
|
show_sensors_without_sync_ = show_sensors_without_sync;
|
|
}
|
|
|
|
protected:
|
|
bool show_sensors_without_sync_;
|
|
};
|
|
|
|
} // namespace mopeka_ble
|
|
} // namespace esphome
|
|
|
|
#endif
|