Fix honeywell translation_placeholder (#131288)

This commit is contained in:
epenet 2024-11-22 17:36:57 +01:00 committed by GitHub
parent 6064055150
commit 46abf9790b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -398,7 +398,7 @@ class HoneywellUSThermostat(ClimateEntity):
raise ServiceValidationError( raise ServiceValidationError(
translation_domain=DOMAIN, translation_domain=DOMAIN,
translation_key="temp_failed_value", translation_key="temp_failed_value",
translation_placeholders={"temp": temperature}, translation_placeholders={"temperature": temperature},
) from err ) from err
async def async_set_temperature(self, **kwargs: Any) -> None: async def async_set_temperature(self, **kwargs: Any) -> None:
@ -422,7 +422,7 @@ class HoneywellUSThermostat(ClimateEntity):
raise ServiceValidationError( raise ServiceValidationError(
translation_domain=DOMAIN, translation_domain=DOMAIN,
translation_key="temp_failed_value", translation_key="temp_failed_value",
translation_placeholders={"temp": str(temperature)}, translation_placeholders={"temperature": str(temperature)},
) from err ) from err
async def async_set_fan_mode(self, fan_mode: str) -> None: async def async_set_fan_mode(self, fan_mode: str) -> None: