소스 검색

device: use unique failure messages for each failure path

Messages for updatedps, status and refresh were all copy and paste.
Use different wording so we can spot patterns in failures.
Jason Rumney 2 년 전
부모
커밋
6ea6a55e30
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      custom_components/tuya_local/device.py

+ 2 - 2
custom_components/tuya_local/device.py

@@ -272,13 +272,13 @@ class TuyaLocalDevice(object):
                     ):
                         poll = await self._retry_on_failed_connection(
                             lambda: self._api.updatedps(self._force_dps),
-                            f"Failed to refresh device state for {self.name}",
+                            f"Failed to update device dps for {self.name}",
                         )
                         dps_updated = True
                     else:
                         poll = await self._retry_on_failed_connection(
                             lambda: self._api.status(),
-                            f"Failed to refresh device state for {self.name}",
+                            f"Failed to fetch device status for {self.name}",
                         )
                         dps_updated = False
                         full_poll = True