mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Fix intellifire climate control not needing a default fireplace (#74253)
This commit is contained in:
parent
f5c6a6be3a
commit
d38e8e213a
@ -80,7 +80,6 @@ class IntellifireClimate(IntellifireEntity, ClimateEntity):
|
||||
(raw_target_temp * 9 / 5) + 32,
|
||||
)
|
||||
await self.coordinator.control_api.set_thermostat_c(
|
||||
fireplace=self.coordinator.control_api.default_fireplace,
|
||||
temp_c=self.last_temp,
|
||||
)
|
||||
|
||||
@ -101,20 +100,15 @@ class IntellifireClimate(IntellifireEntity, ClimateEntity):
|
||||
)
|
||||
|
||||
if hvac_mode == HVACMode.OFF:
|
||||
await self.coordinator.control_api.turn_off_thermostat(
|
||||
fireplace=self.coordinator.control_api.default_fireplace
|
||||
)
|
||||
await self.coordinator.control_api.turn_off_thermostat()
|
||||
return
|
||||
|
||||
# hvac_mode == HVACMode.HEAT
|
||||
# 1) Set the desired target temp
|
||||
await self.coordinator.control_api.set_thermostat_c(
|
||||
fireplace=self.coordinator.control_api.default_fireplace,
|
||||
temp_c=self.last_temp,
|
||||
)
|
||||
|
||||
# 2) Make sure the fireplace is on!
|
||||
if not self.coordinator.read_api.data.is_on:
|
||||
await self.coordinator.control_api.flame_on(
|
||||
fireplace=self.coordinator.control_api.default_fireplace,
|
||||
)
|
||||
await self.coordinator.control_api.flame_on()
|
||||
|
Loading…
x
Reference in New Issue
Block a user