Fix intellifire climate control not needing a default fireplace (#74253)

This commit is contained in:
Jeef 2022-06-30 09:35:06 -06:00 committed by GitHub
parent f5c6a6be3a
commit d38e8e213a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,6 @@ class IntellifireClimate(IntellifireEntity, ClimateEntity):
(raw_target_temp * 9 / 5) + 32, (raw_target_temp * 9 / 5) + 32,
) )
await self.coordinator.control_api.set_thermostat_c( await self.coordinator.control_api.set_thermostat_c(
fireplace=self.coordinator.control_api.default_fireplace,
temp_c=self.last_temp, temp_c=self.last_temp,
) )
@ -101,20 +100,15 @@ class IntellifireClimate(IntellifireEntity, ClimateEntity):
) )
if hvac_mode == HVACMode.OFF: if hvac_mode == HVACMode.OFF:
await self.coordinator.control_api.turn_off_thermostat( await self.coordinator.control_api.turn_off_thermostat()
fireplace=self.coordinator.control_api.default_fireplace
)
return return
# hvac_mode == HVACMode.HEAT # hvac_mode == HVACMode.HEAT
# 1) Set the desired target temp # 1) Set the desired target temp
await self.coordinator.control_api.set_thermostat_c( await self.coordinator.control_api.set_thermostat_c(
fireplace=self.coordinator.control_api.default_fireplace,
temp_c=self.last_temp, temp_c=self.last_temp,
) )
# 2) Make sure the fireplace is on! # 2) Make sure the fireplace is on!
if not self.coordinator.read_api.data.is_on: if not self.coordinator.read_api.data.is_on:
await self.coordinator.control_api.flame_on( await self.coordinator.control_api.flame_on()
fireplace=self.coordinator.control_api.default_fireplace,
)