Browse Source

ha: already checked in loop

test/dev
Maxim Prokhorov 1 month ago
parent
commit
5cb59fed5c
1 changed files with 0 additions and 16 deletions
  1. +0
    -16
      code/espurna/homeassistant.cpp

+ 0
- 16
code/espurna/homeassistant.cpp View File

@ -1137,8 +1137,6 @@ public:
return _state;
}
bool ok() const;
template <typename T>
Result try_send_one(T&& action);
@ -1165,20 +1163,6 @@ private:
Wait _wait_long { LongDurations };
};
bool DiscoveryTask::ok() const {
if (!done()) {
for (auto& entity : _entities) {
if (!entity->ok()) {
return false;
}
}
return true;
}
return false;
}
Result DiscoveryTask::prepare_all() {
bool prepared { true };
for (auto& entity : _entities) {


Loading…
Cancel
Save