Skip to content

Commit

Permalink
ha: already checked in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Apr 10, 2024
1 parent 465ca7a commit 60e19d0
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions code/espurna/homeassistant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1137,8 +1137,6 @@ class DiscoveryTask {
return _state;
}

bool ok() const;

template <typename T>
Result try_send_one(T&& action);

Expand All @@ -1165,20 +1163,6 @@ class DiscoveryTask {
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) {
Expand Down

0 comments on commit 60e19d0

Please sign in to comment.