فهرست منبع

Return the raw code as error_code.

Jason Rumney 5 سال پیش
والد
کامیت
31d815a1ba
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      custom_components/tuya_local/heater/climate.py

+ 1 - 1
custom_components/tuya_local/heater/climate.py

@@ -241,7 +241,7 @@ class GoldairHeater(ClimateDevice):
             error = f"Error {error_code}"
             error = f"Error {error_code}"
         else:
         else:
             error = "OK"
             error = "OK"
-        return {ATTR_ERROR: error, ATTR_ERROR_CODE: error}
+        return {ATTR_ERROR: error, ATTR_ERROR_CODE: error_code}
 
 
     async def async_update(self):
     async def async_update(self):
         await self._device.async_refresh()
         await self._device.async_refresh()