From 4c76de0a3ac8701c5a617b008c1e0a846e7a1454 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 3 Sep 2024 20:19:13 +1000 Subject: [PATCH] Add default displayName --- src/platform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform.ts b/src/platform.ts index 404414d..8ec1307 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -98,7 +98,7 @@ export class TeslaFleetApiPlatform implements DynamicPlatformPlugin { accessory.context.vin = product.vin; accessory.context.state = product.state; - accessory.displayName = product.display_name; + accessory.displayName = product.display_name ?? "Tesla"; new VehicleAccessory(this, accessory); });