From b549d1dcbdb89ec862e9191cc3aa4af591fd4928 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 3 Sep 2024 20:26:17 +1000 Subject: [PATCH] Default energy site name --- src/platform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform.ts b/src/platform.ts index 8ec1307..3f95076 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -143,7 +143,7 @@ export class TeslaFleetApiPlatform implements DynamicPlatformPlugin { accessory.context.battery = product.components.battery; accessory.context.grid = product.components.grid; accessory.context.solar = product.components.solar; - accessory.displayName = product.site_name; + accessory.displayName = product.site_name ?? "Tesla Energy"; new EnergyAccessory(this, accessory); });