binary sensor

This commit is contained in:
J. Nick Koston 2023-06-07 11:10:07 -05:00
parent 92b29573bb
commit f6c142f8e7
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ namespace ratgdo {
void RATGDOComponent::setup()
{
this->pref_ = global_preferences->make_preference<int>(734874333U);
this->pref_ = global_preferences->make_preference<int>(this->get_object_id_hash());
if (!this->pref_.load(&this->rollingCodeCounter)) {
this->rollingCodeCounter = 0;
}