Skip to content

Commit 76ca9ce

Browse files
epenetCopilot
andauthored
Add comment to Tuya code for unsupported devices (#150125)
Co-authored-by: Copilot <[email protected]>
1 parent 124e7cf commit 76ca9ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

homeassistant/components/tuya/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: TuyaConfigEntry) -> bool
165165
identifiers={(DOMAIN, device.id)},
166166
manufacturer="Tuya",
167167
name=device.name,
168+
# Note: the model is overridden via entity.device_info property
169+
# when the entity is created. If no entities are generated, it will
170+
# stay as unsupported
168171
model=f"{device.product_name} (unsupported)",
169172
model_id=device.product_id,
170173
)

0 commit comments

Comments
 (0)