diff --git a/custom_components/tesla_custom/base.py b/custom_components/tesla_custom/base.py index cd03b92..db087a3 100644 --- a/custom_components/tesla_custom/base.py +++ b/custom_components/tesla_custom/base.py @@ -46,7 +46,9 @@ def __init__( display_name = car.display_name vehicle_name = ( display_name - if display_name is not None and display_name != vin[-6:] + if display_name is not None + and display_name != vin[-6:] + and display_name != "" else f"Tesla Model {str(vin[3]).upper()}" ) self._attr_device_info = DeviceInfo(