From 94739f45d09df90b21b566a39134cbac39202a0e Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 21 Jul 2025 10:18:40 +0000 Subject: [PATCH] Adjust --- homeassistant/components/tuya/climate.py | 2 +- homeassistant/components/tuya/cover.py | 4 ++-- homeassistant/components/tuya/humidifier.py | 2 +- homeassistant/components/tuya/number.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/tuya/climate.py b/homeassistant/components/tuya/climate.py index 0dc3ed695f6..4a6f31406ac 100644 --- a/homeassistant/components/tuya/climate.py +++ b/homeassistant/components/tuya/climate.py @@ -360,7 +360,7 @@ class TuyaClimateEntity(TuyaEntity, ClimateEntity): if self._set_temperature is None: raise ServiceValidationError( translation_domain=DOMAIN, - translation_key="dpcode_not_found", + translation_key="action_dpcode_not_found", ) self._send_command( diff --git a/homeassistant/components/tuya/cover.py b/homeassistant/components/tuya/cover.py index e75cd350ab7..2a3cb4ed3f4 100644 --- a/homeassistant/components/tuya/cover.py +++ b/homeassistant/components/tuya/cover.py @@ -337,7 +337,7 @@ class TuyaCoverEntity(TuyaEntity, CoverEntity): if self._set_position is None: raise ServiceValidationError( translation_domain=DOMAIN, - translation_key="dpcode_not_found", + translation_key="action_dpcode_not_found", ) self._send_command( @@ -369,7 +369,7 @@ class TuyaCoverEntity(TuyaEntity, CoverEntity): if self._tilt is None: raise ServiceValidationError( translation_domain=DOMAIN, - translation_key="dpcode_not_found", + translation_key="action_dpcode_not_found", ) self._send_command( diff --git a/homeassistant/components/tuya/humidifier.py b/homeassistant/components/tuya/humidifier.py index 8b0e4048bb6..adf22bb4b63 100644 --- a/homeassistant/components/tuya/humidifier.py +++ b/homeassistant/components/tuya/humidifier.py @@ -181,7 +181,7 @@ class TuyaHumidifierEntity(TuyaEntity, HumidifierEntity): if self._set_humidity is None: raise ServiceValidationError( translation_domain=DOMAIN, - translation_key="dpcode_not_found", + translation_key="action_dpcode_not_found", ) self._send_command( diff --git a/homeassistant/components/tuya/number.py b/homeassistant/components/tuya/number.py index 3a7f92819ac..8eb564737e4 100644 --- a/homeassistant/components/tuya/number.py +++ b/homeassistant/components/tuya/number.py @@ -466,7 +466,7 @@ class TuyaNumberEntity(TuyaEntity, NumberEntity): if self._number is None: raise ServiceValidationError( translation_domain=DOMAIN, - translation_key="dpcode_not_found", + translation_key="action_dpcode_not_found", ) self._send_command(