1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

Fix Match by IRK (#6499)

Co-authored-by: Remus <remus@intelNuc.local>
This commit is contained in:
MRemy2
2024-04-09 04:49:37 +03:00
committed by GitHub
parent 76c5337987
commit 55c49281a2

View File

@@ -73,8 +73,7 @@ class BLEPresenceDevice : public binary_sensor::BinarySensorInitiallyOff,
break; break;
case MATCH_BY_IRK: case MATCH_BY_IRK:
if (resolve_irk_(device.address_uint64(), this->irk_)) { if (resolve_irk_(device.address_uint64(), this->irk_)) {
this->publish_state(true); this->set_found_(true);
this->found_ = true;
return true; return true;
} }
break; break;