Merge pull request #46 from geoffdavis/esphome-2021.10

This commit is contained in:
Geoff Davis 2021-10-23 11:44:35 -07:00 committed by GitHub
commit afe32e8b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,7 +258,7 @@ void MitsubishiHeatPump::hpSettingsChanged() {
* mode, but that isn't working right yet.
*/
ESP_LOGW(TAG, "Waiting for HeatPump to read the settings the first time.");
delay(10);
esphome::delay(10);
return;
}
@ -469,9 +469,9 @@ void MitsubishiHeatPump::setup() {
}
// create various setpoint persistence:
cool_storage = global_preferences.make_preference<uint8_t>(this->get_object_id_hash() + 1);
heat_storage = global_preferences.make_preference<uint8_t>(this->get_object_id_hash() + 2);
auto_storage = global_preferences.make_preference<uint8_t>(this->get_object_id_hash() + 3);
cool_storage = global_preferences->make_preference<uint8_t>(this->get_object_id_hash() + 1);
heat_storage = global_preferences->make_preference<uint8_t>(this->get_object_id_hash() + 2);
auto_storage = global_preferences->make_preference<uint8_t>(this->get_object_id_hash() + 3);
// load values from storage:
cool_setpoint = load(cool_storage);