diff --git a/provision/inputs/silabs.json b/provision/inputs/silabs.json index 7b41a3f99012b7..ebf0f149fe7ed4 100644 --- a/provision/inputs/silabs.json +++ b/provision/inputs/silabs.json @@ -3,8 +3,7 @@ "matter": { "instance_info": { "vendor_id": 4169, - "product_id": 32773, - "manufacturing_date": "0000-00-00" + "product_id": 32773 }, "commissionable_data": { "discriminator": 3841, diff --git a/provision/modules/manager.py b/provision/modules/manager.py index e402e248785ae6..f0e9b72e50ccc7 100644 --- a/provision/modules/manager.py +++ b/provision/modules/manager.py @@ -2,6 +2,7 @@ import random import base64 import importlib +import datetime import modules.util as _util import modules.tools as _tools import modules.device as _dev @@ -114,6 +115,11 @@ def computeDefaults(self, paths, args): if(args.int(ID.kProductId) is None): raise ValueError("Missing product ID") + # Manufacturing Date + mdate = args.get(ID.kManufacturingDate) + if mdate.value is None: + mdate.set("{:%Y-%m-%d}".format(datetime.date.today())) + # Credentials creds = _creds.Credentials(paths, args) creds.collect()