From b78a7520471681e821f26aebae33608b3ffe20bd Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:39:29 +0000 Subject: [PATCH] Fix --- homeassistant/components/tuya/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/tuya/__init__.py b/homeassistant/components/tuya/__init__.py index 805b0a684d6..57ca3eddbe8 100644 --- a/homeassistant/components/tuya/__init__.py +++ b/homeassistant/components/tuya/__init__.py @@ -153,7 +153,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: TuyaConfigEntry) -> bool # Register known device IDs device_registry = dr.async_get(hass) for device in manager.device_map.values(): - model = f"{device.product_name} (unsupported)" 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 LOGGER.info( @@ -162,13 +161,12 @@ async def async_setup_entry(hass: HomeAssistant, entry: TuyaConfigEntry) -> bool device.product_name, device.id, ) - model = f"{device.product_name} (unsupported)" device_registry.async_get_or_create( config_entry_id=entry.entry_id, identifiers={(DOMAIN, device.id)}, manufacturer="Tuya", name=device.name, - model=model, + model=f"{device.product_name} (unsupported)", model_id=device.product_id, )