From 14dbd2ecf805f519d5801f3346d015720d3da833 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:47:34 +0000 Subject: [PATCH] Adjust --- homeassistant/components/tuya/__init__.py | 9 ++++++--- tests/components/tuya/test_init.py | 5 +++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/tuya/__init__.py b/homeassistant/components/tuya/__init__.py index 57ca3eddbe8..6c3aa146158 100644 --- a/homeassistant/components/tuya/__init__.py +++ b/homeassistant/components/tuya/__init__.py @@ -154,12 +154,15 @@ async def async_setup_entry(hass: HomeAssistant, entry: TuyaConfigEntry) -> bool device_registry = dr.async_get(hass) for device in manager.device_map.values(): if not device.status and not device.status_range and not device.function: - # If the device has no status, status_range or function, it cannot be supported + # If the device has no status, status_range or function, + # it cannot be supported LOGGER.info( - "Device %s (%s) has been ignored as it does not provide any DPCode" - " (status, status_range and function are all empty)", + "Device %s (%s) has been ignored as it does not provide any" + " standard instructions (status, status_range and function are" + " all empty) - see %s", device.product_name, device.id, + "https://github.com/tuya/tuya-device-sharing-sdk/issues/11", ) device_registry.async_get_or_create( config_entry_id=entry.entry_id, diff --git a/tests/components/tuya/test_init.py b/tests/components/tuya/test_init.py index c92ecebc213..5e6db5d4670 100644 --- a/tests/components/tuya/test_init.py +++ b/tests/components/tuya/test_init.py @@ -43,6 +43,7 @@ async def test_unsupported_device( # Information log entry added assert ( "Device DOLCECLIMA 10 HP WIFI (mock_device_id) has been ignored" - " as it does not provide any DPCode (status, status_range and function" - " are all empty)" in caplog.text + " as it does not provide any standard instructions (status, status_range" + " and function are all empty) - see " + "https://github.com/tuya/tuya-device-sharing-sdk/issues/11" in caplog.text )