diff --git a/homeassistant/components/tuya/climate.py b/homeassistant/components/tuya/climate.py index 666b0e944eb..072fc58d510 100644 --- a/homeassistant/components/tuya/climate.py +++ b/homeassistant/components/tuya/climate.py @@ -332,8 +332,8 @@ class TuyaClimateEntity(TuyaEntity, ClimateEntity): device_manager: Manager, description: TuyaClimateEntityDescription, *, - current_humidity_wrapper: _RoundedIntegerWrapper | None, - current_temperature_wrapper: DPCodeIntegerWrapper | None, + current_humidity_wrapper: DeviceWrapper[int] | None, + current_temperature_wrapper: DeviceWrapper[float] | None, fan_mode_wrapper: DPCodeEnumWrapper | None, hvac_mode_wrapper: DPCodeEnumWrapper | None, set_temperature_wrapper: DPCodeIntegerWrapper | None, diff --git a/homeassistant/components/tuya/cover.py b/homeassistant/components/tuya/cover.py index 5c82d1f8f40..3881b398b3a 100644 --- a/homeassistant/components/tuya/cover.py +++ b/homeassistant/components/tuya/cover.py @@ -340,11 +340,11 @@ class TuyaCoverEntity(TuyaEntity, CoverEntity): device_manager: Manager, description: TuyaCoverEntityDescription, *, - current_position: _DPCodePercentageMappingWrapper | None, + current_position: DeviceWrapper[int] | None, current_state_wrapper: _IsClosedWrapper | None, - instruction_wrapper: DeviceWrapper | None, - set_position: _DPCodePercentageMappingWrapper | None, - tilt_position: _DPCodePercentageMappingWrapper | None, + instruction_wrapper: DeviceWrapper[str] | None, + set_position: DeviceWrapper[int] | None, + tilt_position: DeviceWrapper[int] | None, ) -> None: """Init Tuya Cover.""" super().__init__(device, device_manager) @@ -358,7 +358,7 @@ class TuyaCoverEntity(TuyaEntity, CoverEntity): self._set_position = set_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: self._attr_supported_features |= CoverEntityFeature.OPEN if "close" in instruction_wrapper.options: