diff --git a/components/mitsubishi_heatpump/espmhp.cpp b/components/mitsubishi_heatpump/espmhp.cpp index 4a2c142..70fe468 100644 --- a/components/mitsubishi_heatpump/espmhp.cpp +++ b/components/mitsubishi_heatpump/espmhp.cpp @@ -469,9 +469,9 @@ void MitsubishiHeatPump::setup() { } // create various setpoint persistence: - cool_storage = global_preferences.make_preference(this->get_object_id_hash() + 1); - heat_storage = global_preferences.make_preference(this->get_object_id_hash() + 2); - auto_storage = global_preferences.make_preference(this->get_object_id_hash() + 3); + cool_storage = global_preferences->make_preference(this->get_object_id_hash() + 1); + heat_storage = global_preferences->make_preference(this->get_object_id_hash() + 2); + auto_storage = global_preferences->make_preference(this->get_object_id_hash() + 3); // load values from storage: cool_setpoint = load(cool_storage);