Supply entity ID if friendly name is empty in android auto (#3609)

This commit is contained in:
Daniel Shokouhi 2023-06-29 19:16:14 -07:00 committed by GitHub
parent 0ef3bc4461
commit 25999ac591
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ class EntityGridVehicleScreen(
val gridItem =
GridItem.Builder()
.setLoading(false)
.setTitle(entity.friendlyName)
.setTitle(entity.friendlyName.ifEmpty { entity.entityId })
.setText(entity.friendlyState(carContext))
if (entity.isExecuting()) {