mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 15:31:52 -05:00
Implement current setpoint method in actron air integration (#169358)
This commit is contained in:
@@ -147,7 +147,7 @@ class ActronSystemClimate(ActronAirAcEntity, ActronAirClimateEntity):
|
||||
@property
|
||||
def target_temperature(self) -> float:
|
||||
"""Return the target temperature."""
|
||||
return self._status.user_aircon_settings.temperature_setpoint_cool_c
|
||||
return self._status.user_aircon_settings.current_setpoint
|
||||
|
||||
@actron_air_command
|
||||
async def async_set_fan_mode(self, fan_mode: str) -> None:
|
||||
@@ -239,7 +239,7 @@ class ActronZoneClimate(ActronAirZoneEntity, ActronAirClimateEntity):
|
||||
@property
|
||||
def target_temperature(self) -> float | None:
|
||||
"""Return the target temperature."""
|
||||
return self._zone.temperature_setpoint_cool_c
|
||||
return self._zone.current_setpoint
|
||||
|
||||
@actron_air_command
|
||||
async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None:
|
||||
|
||||
@@ -122,7 +122,7 @@ def mock_zone() -> MagicMock:
|
||||
zone.zone_name = "Test Zone"
|
||||
zone.title = "Living Room"
|
||||
zone.live_temp_c = 22.0
|
||||
zone.temperature_setpoint_cool_c = 24.0
|
||||
zone.current_setpoint = 24.0
|
||||
zone.is_active = True
|
||||
zone.hvac_mode = "COOL"
|
||||
zone.humidity = 50.0
|
||||
|
||||
Reference in New Issue
Block a user