Procházet zdrojové kódy

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 před 5 měsíci
rodič
revize
f8683d4d1e

+ 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}."
         )