mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 19:54:14 +01:00
fixed more clang-tidy issues
This commit is contained in:
parent
8eb6ea2f00
commit
a6ecf5f4eb
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,8 @@ namespace esphome {
|
|||
namespace optolink {
|
||||
|
||||
static const char *const TAG = "optolink.datapoint_component";
|
||||
|
||||
// NOLINTNEXTLINE
|
||||
static std::vector<HassSubscription> hass_subscriptions_;
|
||||
|
||||
void DatapointComponent::setup_datapoint_() {
|
||||
|
@ -266,6 +268,7 @@ void DatapointComponent::subscribe_hass_(const std::string &entity_id, const std
|
|||
return;
|
||||
}
|
||||
}
|
||||
// NOLINTNEXTLINE
|
||||
HassSubscription subscription{entity_id, ""};
|
||||
subscription.callbacks.push_back(f);
|
||||
hass_subscriptions_.push_back(subscription);
|
||||
|
|
Loading…
Reference in a new issue