mirror of
https://github.com/esphome/esphome.git
synced 2024-12-03 20:24: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 {
|
namespace optolink {
|
||||||
|
|
||||||
static const char *const TAG = "optolink.datapoint_component";
|
static const char *const TAG = "optolink.datapoint_component";
|
||||||
|
|
||||||
|
// NOLINTNEXTLINE
|
||||||
static std::vector<HassSubscription> hass_subscriptions_;
|
static std::vector<HassSubscription> hass_subscriptions_;
|
||||||
|
|
||||||
void DatapointComponent::setup_datapoint_() {
|
void DatapointComponent::setup_datapoint_() {
|
||||||
|
@ -266,6 +268,7 @@ void DatapointComponent::subscribe_hass_(const std::string &entity_id, const std
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// NOLINTNEXTLINE
|
||||||
HassSubscription subscription{entity_id, ""};
|
HassSubscription subscription{entity_id, ""};
|
||||||
subscription.callbacks.push_back(f);
|
subscription.callbacks.push_back(f);
|
||||||
hass_subscriptions_.push_back(subscription);
|
hass_subscriptions_.push_back(subscription);
|
||||||
|
|
Loading…
Reference in a new issue