Add product ID to model for Tuya (#58235)

pull/57926/head
Franck Nijhof 2021-10-22 19:39:31 +02:00 committed by GitHub
parent 3b7dce8b95
commit 843296c1a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class TuyaEntity(Entity):
identifiers={(DOMAIN, self.device.id)},
manufacturer="Tuya",
name=self.device.name,
model=self.device.product_name,
model=f"{self.device.product_name} ({self.device.product_id})",
)
@property