From f6c142f8e791c23dad778bae505bd8af3de9c65c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 11:10:07 -0500 Subject: [PATCH] binary sensor --- components/ratgdo/ratgdo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index c211f95..7261819 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -95,7 +95,7 @@ namespace ratgdo { void RATGDOComponent::setup() { - this->pref_ = global_preferences->make_preference(734874333U); + this->pref_ = global_preferences->make_preference(this->get_object_id_hash()); if (!this->pref_.load(&this->rollingCodeCounter)) { this->rollingCodeCounter = 0; }