diff --git a/src/platform.ts b/src/platform.ts index 4b68109..ba78539 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); });