Просмотр исходного кода

fix(entity): use config_id for deprecation log message

Using just entity type is ambiguous, as there may be multiple entities of
that type.
Jason Rumney 6 месяцев назад
Родитель
Сommit
f8683d4d1e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      custom_components/tuya_local/helpers/device_config.py

+ 1 - 1
custom_components/tuya_local/helpers/device_config.py

@@ -300,7 +300,7 @@ class TuyaEntityConfig:
             "deprecated", "nothing, this warning has been raised in error"
         )
         return (
-            f"The use of {self.entity} for {self._device.name} is "
+            f"The use of {self.config_id} for {self._device.name} is "
             f"deprecated and should be replaced by {replacement}."
         )