瀏覽代碼

Return the raw code as error_code.

Jason Rumney 6 年之前
父節點
當前提交
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}"
         else:
             error = "OK"
-        return {ATTR_ERROR: error, ATTR_ERROR_CODE: error}
+        return {ATTR_ERROR: error, ATTR_ERROR_CODE: error_code}
 
     async def async_update(self):
         await self._device.async_refresh()