From 48b5ea9e59fe0c0ff8efdf749ee06956ce1e14cb Mon Sep 17 00:00:00 2001
From: Roberto Wagner <rwagnervm@hotmail.com>
Date: Mon, 31 May 2021 21:22:09 -0300
Subject: [PATCH] Update fingerprint count after enroll (#1811)

---
 esphome/components/fingerprint_grow/fingerprint_grow.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/esphome/components/fingerprint_grow/fingerprint_grow.cpp b/esphome/components/fingerprint_grow/fingerprint_grow.cpp
index 77ddf8ec37..370bdc782b 100644
--- a/esphome/components/fingerprint_grow/fingerprint_grow.cpp
+++ b/esphome/components/fingerprint_grow/fingerprint_grow.cpp
@@ -75,6 +75,7 @@ void FingerprintGrowComponent::enroll_fingerprint(uint16_t finger_id, uint8_t nu
 void FingerprintGrowComponent::finish_enrollment(uint8_t result) {
   if (result == OK) {
     this->enrollment_done_callback_.call(this->enrollment_slot_);
+    this->get_fingerprint_count_();
   } else {
     this->enrollment_failed_callback_.call(this->enrollment_slot_);
   }