mirror of
https://github.com/home-assistant/core.git
synced 2025-12-20 02:48:57 +00:00
More
This commit is contained in:
@@ -332,8 +332,8 @@ class TuyaClimateEntity(TuyaEntity, ClimateEntity):
|
|||||||
device_manager: Manager,
|
device_manager: Manager,
|
||||||
description: TuyaClimateEntityDescription,
|
description: TuyaClimateEntityDescription,
|
||||||
*,
|
*,
|
||||||
current_humidity_wrapper: _RoundedIntegerWrapper | None,
|
current_humidity_wrapper: DeviceWrapper[int] | None,
|
||||||
current_temperature_wrapper: DPCodeIntegerWrapper | None,
|
current_temperature_wrapper: DeviceWrapper[float] | None,
|
||||||
fan_mode_wrapper: DPCodeEnumWrapper | None,
|
fan_mode_wrapper: DPCodeEnumWrapper | None,
|
||||||
hvac_mode_wrapper: DPCodeEnumWrapper | None,
|
hvac_mode_wrapper: DPCodeEnumWrapper | None,
|
||||||
set_temperature_wrapper: DPCodeIntegerWrapper | None,
|
set_temperature_wrapper: DPCodeIntegerWrapper | None,
|
||||||
|
|||||||
@@ -340,11 +340,11 @@ class TuyaCoverEntity(TuyaEntity, CoverEntity):
|
|||||||
device_manager: Manager,
|
device_manager: Manager,
|
||||||
description: TuyaCoverEntityDescription,
|
description: TuyaCoverEntityDescription,
|
||||||
*,
|
*,
|
||||||
current_position: _DPCodePercentageMappingWrapper | None,
|
current_position: DeviceWrapper[int] | None,
|
||||||
current_state_wrapper: _IsClosedWrapper | None,
|
current_state_wrapper: _IsClosedWrapper | None,
|
||||||
instruction_wrapper: DeviceWrapper | None,
|
instruction_wrapper: DeviceWrapper[str] | None,
|
||||||
set_position: _DPCodePercentageMappingWrapper | None,
|
set_position: DeviceWrapper[int] | None,
|
||||||
tilt_position: _DPCodePercentageMappingWrapper | None,
|
tilt_position: DeviceWrapper[int] | None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Init Tuya Cover."""
|
"""Init Tuya Cover."""
|
||||||
super().__init__(device, device_manager)
|
super().__init__(device, device_manager)
|
||||||
@@ -358,7 +358,7 @@ class TuyaCoverEntity(TuyaEntity, CoverEntity):
|
|||||||
self._set_position = set_position
|
self._set_position = set_position
|
||||||
self._tilt_position = tilt_position
|
self._tilt_position = tilt_position
|
||||||
|
|
||||||
if instruction_wrapper and instruction_wrapper.options is not None:
|
if instruction_wrapper and instruction_wrapper.options:
|
||||||
if "open" in instruction_wrapper.options:
|
if "open" in instruction_wrapper.options:
|
||||||
self._attr_supported_features |= CoverEntityFeature.OPEN
|
self._attr_supported_features |= CoverEntityFeature.OPEN
|
||||||
if "close" in instruction_wrapper.options:
|
if "close" in instruction_wrapper.options:
|
||||||
|
|||||||
Reference in New Issue
Block a user