This commit is contained in:
parent
d58c735863
commit
87b7e831e8
|
@ -846,7 +846,6 @@ message ListEntitiesClimateResponse {
|
||||||
bool supports_target_humidity = 23;
|
bool supports_target_humidity = 23;
|
||||||
float visual_min_humidity = 24;
|
float visual_min_humidity = 24;
|
||||||
float visual_max_humidity = 25;
|
float visual_max_humidity = 25;
|
||||||
bool supports_aux_heat = 26;
|
|
||||||
}
|
}
|
||||||
message ClimateStateResponse {
|
message ClimateStateResponse {
|
||||||
option (id) = 47;
|
option (id) = 47;
|
||||||
|
@ -870,7 +869,6 @@ message ClimateStateResponse {
|
||||||
string custom_preset = 13;
|
string custom_preset = 13;
|
||||||
float current_humidity = 14;
|
float current_humidity = 14;
|
||||||
float target_humidity = 15;
|
float target_humidity = 15;
|
||||||
bool aux_heat = 16;
|
|
||||||
}
|
}
|
||||||
message ClimateCommandRequest {
|
message ClimateCommandRequest {
|
||||||
option (id) = 48;
|
option (id) = 48;
|
||||||
|
@ -902,8 +900,6 @@ message ClimateCommandRequest {
|
||||||
string custom_preset = 21;
|
string custom_preset = 21;
|
||||||
bool has_target_humidity = 22;
|
bool has_target_humidity = 22;
|
||||||
float target_humidity = 23;
|
float target_humidity = 23;
|
||||||
bool has_aux_heat = 24;
|
|
||||||
bool aux_heat = 25;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ==================== NUMBER ====================
|
// ==================== NUMBER ====================
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1048,7 +1048,6 @@ class APIClient:
|
||||||
preset: ClimatePreset | None = None,
|
preset: ClimatePreset | None = None,
|
||||||
custom_preset: str | None = None,
|
custom_preset: str | None = None,
|
||||||
target_humidity: float | None = None,
|
target_humidity: float | None = None,
|
||||||
aux_heat: bool | None = None,
|
|
||||||
) -> None:
|
) -> None:
|
||||||
req = ClimateCommandRequest(key=key)
|
req = ClimateCommandRequest(key=key)
|
||||||
if mode is not None:
|
if mode is not None:
|
||||||
|
@ -1088,9 +1087,6 @@ class APIClient:
|
||||||
if target_humidity is not None:
|
if target_humidity is not None:
|
||||||
req.has_target_humidity = True
|
req.has_target_humidity = True
|
||||||
req.target_humidity = target_humidity
|
req.target_humidity = target_humidity
|
||||||
if aux_heat is not None:
|
|
||||||
req.has_aux_heat = True
|
|
||||||
req.aux_heat = aux_heat
|
|
||||||
self._get_connection().send_message(req)
|
self._get_connection().send_message(req)
|
||||||
|
|
||||||
async def number_command(self, key: int, state: float) -> None:
|
async def number_command(self, key: int, state: float) -> None:
|
||||||
|
|
|
@ -548,7 +548,6 @@ class ClimateInfo(EntityInfo):
|
||||||
supports_target_humidity: bool = False
|
supports_target_humidity: bool = False
|
||||||
visual_min_humidity: float = 0
|
visual_min_humidity: float = 0
|
||||||
visual_max_humidity: float = 0
|
visual_max_humidity: float = 0
|
||||||
supports_aux_heat: bool = False
|
|
||||||
|
|
||||||
def supported_presets_compat(self, api_version: APIVersion) -> list[ClimatePreset]:
|
def supported_presets_compat(self, api_version: APIVersion) -> list[ClimatePreset]:
|
||||||
if api_version < APIVersion(1, 5):
|
if api_version < APIVersion(1, 5):
|
||||||
|
@ -594,7 +593,6 @@ class ClimateState(EntityState):
|
||||||
custom_preset: str = ""
|
custom_preset: str = ""
|
||||||
current_humidity: float = 0
|
current_humidity: float = 0
|
||||||
target_humidity: float = 0
|
target_humidity: float = 0
|
||||||
aux_heat: bool = False
|
|
||||||
|
|
||||||
def preset_compat(self, api_version: APIVersion) -> ClimatePreset | None:
|
def preset_compat(self, api_version: APIVersion) -> ClimatePreset | None:
|
||||||
if api_version < APIVersion(1, 5):
|
if api_version < APIVersion(1, 5):
|
||||||
|
|
|
@ -528,10 +528,6 @@ async def test_climate_command_legacy(
|
||||||
dict(key=1, target_humidity=60.0),
|
dict(key=1, target_humidity=60.0),
|
||||||
dict(key=1, has_target_humidity=True, target_humidity=60.0),
|
dict(key=1, has_target_humidity=True, target_humidity=60.0),
|
||||||
),
|
),
|
||||||
(
|
|
||||||
dict(key=1, aux_heat=True),
|
|
||||||
dict(key=1, has_aux_heat=True, aux_heat=True),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
async def test_climate_command(
|
async def test_climate_command(
|
||||||
|
|
Loading…
Reference in New Issue