From 4d7855cbb3f45508b6b653d1fc4f1cdd34bb6fb8 Mon Sep 17 00:00:00 2001 From: Jerry Johns Date: Wed, 1 Dec 2021 11:28:23 -0800 Subject: [PATCH] Re-run codegen --- .../python/chip/clusters/Objects.py | 551 ++++++------------ 1 file changed, 184 insertions(+), 367 deletions(-) diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index 7be4fcb651e30f..9dbb706bef53cc 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -1562,12 +1562,9 @@ class SceneExtensionFieldSet(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="clusterId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="length", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="value", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="clusterId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="length", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="value", Tag=, Type=uint), ]) clusterId: 'uint' = 0 @@ -3419,14 +3416,10 @@ class PowerProfileRecord(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="powerProfileId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="energyPhaseId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="powerProfileRemoteControl", Tag=3, Type=bool), - ClusterObjectFieldDescriptor( - Label="powerProfileState", Tag=4, Type=uint), + ClusterObjectFieldDescriptor(Label="powerProfileId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="energyPhaseId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="powerProfileRemoteControl", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="powerProfileState", Tag=, Type=uint), ]) powerProfileId: 'uint' = 0 @@ -3440,10 +3433,8 @@ class ScheduledPhase(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="energyPhaseId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="scheduledTime", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="energyPhaseId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="scheduledTime", Tag=, Type=uint), ]) energyPhaseId: 'uint' = 0 @@ -3455,18 +3446,12 @@ class TransferredPhase(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="energyPhaseId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="macroPhaseId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="expectedDuration", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="peakPower", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="energy", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="maxActivationDelay", Tag=6, Type=uint), + ClusterObjectFieldDescriptor(Label="energyPhaseId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="macroPhaseId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="expectedDuration", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="peakPower", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="energy", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="maxActivationDelay", Tag=, Type=uint), ]) energyPhaseId: 'uint' = 0 @@ -4288,10 +4273,8 @@ class DeviceType(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="type", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="revision", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="type", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="revision", Tag=, Type=uint), ]) type: 'uint' = 0 @@ -4658,18 +4641,12 @@ class ActionStruct(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="actionID", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="type", Tag=3, Type=BridgedActions.Enums.ActionTypeEnum), - ClusterObjectFieldDescriptor( - Label="endpointListID", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="supportedCommands", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="status", Tag=6, Type=BridgedActions.Enums.ActionStatusEnum), + ClusterObjectFieldDescriptor(Label="actionID", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="type", Tag=, Type=BridgedActions.Enums.ActionTypeEnum), + ClusterObjectFieldDescriptor(Label="endpointListID", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="supportedCommands", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="status", Tag=, Type=BridgedActions.Enums.ActionStatusEnum), ]) actionID: 'uint' = 0 @@ -4685,14 +4662,10 @@ class EndpointListStruct(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="endpointListID", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="type", Tag=3, Type=BridgedActions.Enums.EndpointListTypeEnum), - ClusterObjectFieldDescriptor( - Label="endpoints", Tag=4, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="endpointListID", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="type", Tag=, Type=BridgedActions.Enums.EndpointListTypeEnum), + ClusterObjectFieldDescriptor(Label="endpoints", Tag=, Type=typing.List[uint]), ]) endpointListID: 'uint' = 0 @@ -6556,8 +6529,7 @@ class BasicCommissioningInfoType(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="failSafeExpiryLengthMs", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="failSafeExpiryLengthMs", Tag=, Type=uint), ]) failSafeExpiryLengthMs: 'uint' = 0 @@ -6812,8 +6784,7 @@ class ThreadInterfaceScanResult(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="discoveryResponse", Tag=1, Type=bytes), + ClusterObjectFieldDescriptor(Label="discoveryResponse", Tag=, Type=bytes), ]) discoveryResponse: 'bytes' = b"" @@ -6824,16 +6795,11 @@ class WiFiInterfaceScanResult(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="security", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="ssid", Tag=2, Type=bytes), - ClusterObjectFieldDescriptor( - Label="bssid", Tag=3, Type=bytes), - ClusterObjectFieldDescriptor( - Label="channel", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="frequencyBand", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="security", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="ssid", Tag=, Type=bytes), + ClusterObjectFieldDescriptor(Label="bssid", Tag=, Type=bytes), + ClusterObjectFieldDescriptor(Label="channel", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="frequencyBand", Tag=, Type=uint), ]) security: 'uint' = 0 @@ -7378,18 +7344,12 @@ class NetworkInterfaceType(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="name", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="fabricConnected", Tag=2, Type=bool), - ClusterObjectFieldDescriptor( - Label="offPremiseServicesReachableIPv4", Tag=3, Type=bool), - ClusterObjectFieldDescriptor( - Label="offPremiseServicesReachableIPv6", Tag=4, Type=bool), - ClusterObjectFieldDescriptor( - Label="hardwareAddress", Tag=5, Type=bytes), - ClusterObjectFieldDescriptor( - Label="type", Tag=6, Type=GeneralDiagnostics.Enums.InterfaceType), + ClusterObjectFieldDescriptor(Label="name", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="fabricConnected", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="offPremiseServicesReachableIPv4", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="offPremiseServicesReachableIPv6", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="hardwareAddress", Tag=, Type=bytes), + ClusterObjectFieldDescriptor(Label="type", Tag=, Type=GeneralDiagnostics.Enums.InterfaceType), ]) name: 'str' = "" @@ -7649,12 +7609,9 @@ class SoftwareFault(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="id", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="faultRecording", Tag=3, Type=bytes), + ClusterObjectFieldDescriptor(Label="id", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="faultRecording", Tag=, Type=bytes), ]) id: 'uint' = 0 @@ -7667,16 +7624,11 @@ class ThreadMetrics(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="id", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="stackFreeCurrent", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="stackFreeMinimum", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="stackSize", Tag=5, Type=uint), + ClusterObjectFieldDescriptor(Label="id", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="stackFreeCurrent", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="stackFreeMinimum", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="stackSize", Tag=, Type=uint), ]) id: 'uint' = 0 @@ -7844,34 +7796,20 @@ class NeighborTable(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="extAddress", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="age", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="rloc16", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="linkFrameCounter", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="mleFrameCounter", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="lqi", Tag=6, Type=uint), - ClusterObjectFieldDescriptor( - Label="averageRssi", Tag=7, Type=int), - ClusterObjectFieldDescriptor( - Label="lastRssi", Tag=8, Type=int), - ClusterObjectFieldDescriptor( - Label="frameErrorRate", Tag=9, Type=uint), - ClusterObjectFieldDescriptor( - Label="messageErrorRate", Tag=10, Type=uint), - ClusterObjectFieldDescriptor( - Label="rxOnWhenIdle", Tag=11, Type=bool), - ClusterObjectFieldDescriptor( - Label="fullThreadDevice", Tag=12, Type=bool), - ClusterObjectFieldDescriptor( - Label="fullNetworkData", Tag=13, Type=bool), - ClusterObjectFieldDescriptor( - Label="isChild", Tag=14, Type=bool), + ClusterObjectFieldDescriptor(Label="extAddress", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="age", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="rloc16", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="linkFrameCounter", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="mleFrameCounter", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="lqi", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="averageRssi", Tag=, Type=int), + ClusterObjectFieldDescriptor(Label="lastRssi", Tag=, Type=int), + ClusterObjectFieldDescriptor(Label="frameErrorRate", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="messageErrorRate", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="rxOnWhenIdle", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="fullThreadDevice", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="fullNetworkData", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="isChild", Tag=, Type=bool), ]) extAddress: 'uint' = 0 @@ -7895,30 +7833,18 @@ class OperationalDatasetComponents(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="activeTimestampPresent", Tag=1, Type=bool), - ClusterObjectFieldDescriptor( - Label="pendingTimestampPresent", Tag=2, Type=bool), - ClusterObjectFieldDescriptor( - Label="masterKeyPresent", Tag=3, Type=bool), - ClusterObjectFieldDescriptor( - Label="networkNamePresent", Tag=4, Type=bool), - ClusterObjectFieldDescriptor( - Label="extendedPanIdPresent", Tag=5, Type=bool), - ClusterObjectFieldDescriptor( - Label="meshLocalPrefixPresent", Tag=6, Type=bool), - ClusterObjectFieldDescriptor( - Label="delayPresent", Tag=7, Type=bool), - ClusterObjectFieldDescriptor( - Label="panIdPresent", Tag=8, Type=bool), - ClusterObjectFieldDescriptor( - Label="channelPresent", Tag=9, Type=bool), - ClusterObjectFieldDescriptor( - Label="pskcPresent", Tag=10, Type=bool), - ClusterObjectFieldDescriptor( - Label="securityPolicyPresent", Tag=11, Type=bool), - ClusterObjectFieldDescriptor( - Label="channelMaskPresent", Tag=12, Type=bool), + ClusterObjectFieldDescriptor(Label="activeTimestampPresent", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="pendingTimestampPresent", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="masterKeyPresent", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="networkNamePresent", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="extendedPanIdPresent", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="meshLocalPrefixPresent", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="delayPresent", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="panIdPresent", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="channelPresent", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="pskcPresent", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="securityPolicyPresent", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="channelMaskPresent", Tag=, Type=bool), ]) activeTimestampPresent: 'bool' = False @@ -7940,26 +7866,16 @@ class RouteTable(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="extAddress", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="rloc16", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="routerId", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="nextHop", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="pathCost", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="LQIIn", Tag=6, Type=uint), - ClusterObjectFieldDescriptor( - Label="LQIOut", Tag=7, Type=uint), - ClusterObjectFieldDescriptor( - Label="age", Tag=8, Type=uint), - ClusterObjectFieldDescriptor( - Label="allocated", Tag=9, Type=bool), - ClusterObjectFieldDescriptor( - Label="linkEstablished", Tag=10, Type=bool), + ClusterObjectFieldDescriptor(Label="extAddress", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="rloc16", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="routerId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="nextHop", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="pathCost", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="LQIIn", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="LQIOut", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="age", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="allocated", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="linkEstablished", Tag=, Type=bool), ]) extAddress: 'uint' = 0 @@ -7979,10 +7895,8 @@ class SecurityPolicy(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="rotationTime", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="flags", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="rotationTime", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="flags", Tag=, Type=uint), ]) rotationTime: 'uint' = 0 @@ -10298,18 +10212,12 @@ class FabricDescriptor(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="rootPublicKey", Tag=2, Type=bytes), - ClusterObjectFieldDescriptor( - Label="vendorId", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="fabricId", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="nodeId", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="label", Tag=6, Type=str), + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="rootPublicKey", Tag=, Type=bytes), + ClusterObjectFieldDescriptor(Label="vendorId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="fabricId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="nodeId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="label", Tag=, Type=str), ]) fabricIndex: 'uint' = 0 @@ -10325,10 +10233,8 @@ class NOCStruct(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="noc", Tag=2, Type=bytes), + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="noc", Tag=, Type=bytes), ]) fabricIndex: 'uint' = 0 @@ -10696,10 +10602,8 @@ class LabelStruct(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="label", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="value", Tag=2, Type=str), + ClusterObjectFieldDescriptor(Label="label", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="value", Tag=, Type=str), ]) label: 'str' = "" @@ -10837,12 +10741,9 @@ class ModeOptionStruct(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="label", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="mode", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="semanticTag", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="label", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="mode", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="semanticTag", Tag=, Type=uint), ]) label: 'str' = "" @@ -10855,10 +10756,8 @@ class SemanticTag(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="mfgCode", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="value", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="mfgCode", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="value", Tag=, Type=uint), ]) mfgCode: 'uint' = 0 @@ -21567,10 +21466,8 @@ class IasAceZoneStatusResult(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="zoneId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="zoneStatus", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="zoneId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="zoneStatus", Tag=, Type=uint), ]) zoneId: 'uint' = 0 @@ -22176,16 +22073,11 @@ class TvChannelInfo(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="majorNumber", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="minorNumber", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=3, Type=str), - ClusterObjectFieldDescriptor( - Label="callSign", Tag=4, Type=str), - ClusterObjectFieldDescriptor( - Label="affiliateCallSign", Tag=5, Type=str), + ClusterObjectFieldDescriptor(Label="majorNumber", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="minorNumber", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="callSign", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="affiliateCallSign", Tag=, Type=str), ]) majorNumber: 'uint' = 0 @@ -22200,14 +22092,10 @@ class TvChannelLineupInfo(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="operatorName", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="lineupName", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="postalCode", Tag=3, Type=str), - ClusterObjectFieldDescriptor( - Label="lineupInfoType", Tag=4, Type=TvChannel.Enums.TvChannelLineupInfoType), + ClusterObjectFieldDescriptor(Label="operatorName", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="lineupName", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="postalCode", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="lineupInfoType", Tag=, Type=TvChannel.Enums.TvChannelLineupInfoType), ]) operatorName: 'str' = "" @@ -22387,10 +22275,8 @@ class NavigateTargetTargetInfo(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="identifier", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="name", Tag=2, Type=str), + ClusterObjectFieldDescriptor(Label="identifier", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="name", Tag=, Type=str), ]) identifier: 'uint' = 0 @@ -22528,10 +22414,8 @@ class MediaPlaybackPosition(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="updatedAt", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="position", Tag=2, Type=uint), + ClusterObjectFieldDescriptor(Label="updatedAt", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="position", Tag=, Type=uint), ]) updatedAt: 'uint' = 0 @@ -23046,14 +22930,10 @@ class MediaInputInfo(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="index", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="inputType", Tag=2, Type=MediaInput.Enums.MediaInputType), - ClusterObjectFieldDescriptor( - Label="name", Tag=3, Type=str), - ClusterObjectFieldDescriptor( - Label="description", Tag=4, Type=str), + ClusterObjectFieldDescriptor(Label="index", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="inputType", Tag=, Type=MediaInput.Enums.MediaInputType), + ClusterObjectFieldDescriptor(Label="name", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="description", Tag=, Type=str), ]) index: 'uint' = 0 @@ -23442,10 +23322,8 @@ class ContentLaunchAdditionalInfo(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="name", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="value", Tag=2, Type=str), + ClusterObjectFieldDescriptor(Label="name", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="value", Tag=, Type=str), ]) name: 'str' = "" @@ -23457,12 +23335,9 @@ class ContentLaunchParamater(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="type", Tag=1, Type=ContentLauncher.Enums.ContentLaunchParameterEnum), - ClusterObjectFieldDescriptor( - Label="value", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="externalIDList", Tag=3, Type=typing.List[ContentLauncher.Structs.ContentLaunchAdditionalInfo]), + ClusterObjectFieldDescriptor(Label="type", Tag=, Type=ContentLauncher.Enums.ContentLaunchParameterEnum), + ClusterObjectFieldDescriptor(Label="value", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="externalIDList", Tag=, Type=typing.List[ContentLauncher.Structs.ContentLaunchAdditionalInfo]), ]) type: 'ContentLauncher.Enums.ContentLaunchParameterEnum' = 0 @@ -23476,18 +23351,12 @@ class ContentLaunchBrandingInformation(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="providerName", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="background", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="logo", Tag=3, Type=uint), - ClusterObjectFieldDescriptor( - Label="progressBar", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="splash", Tag=5, Type=uint), - ClusterObjectFieldDescriptor( - Label="waterMark", Tag=6, Type=uint), + ClusterObjectFieldDescriptor(Label="providerName", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="background", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="logo", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="progressBar", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="splash", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="waterMark", Tag=, Type=uint), ]) providerName: 'str' = "" @@ -23503,12 +23372,9 @@ class ContentLaunchDimension(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="width", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="height", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="metric", Tag=3, Type=ContentLauncher.Enums.ContentLaunchMetricType), + ClusterObjectFieldDescriptor(Label="width", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="height", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="metric", Tag=, Type=ContentLauncher.Enums.ContentLaunchMetricType), ]) width: 'str' = "" @@ -23521,12 +23387,9 @@ class ContentLaunchStyleInformation(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="imageUrl", Tag=1, Type=str), - ClusterObjectFieldDescriptor( - Label="color", Tag=2, Type=str), - ClusterObjectFieldDescriptor( - Label="size", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="imageUrl", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="color", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="size", Tag=, Type=uint), ]) imageUrl: 'str' = "" @@ -23697,12 +23560,9 @@ class AudioOutputInfo(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="index", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="outputType", Tag=2, Type=AudioOutput.Enums.AudioOutputType), - ClusterObjectFieldDescriptor( - Label="name", Tag=3, Type=str), + ClusterObjectFieldDescriptor(Label="index", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="outputType", Tag=, Type=AudioOutput.Enums.AudioOutputType), + ClusterObjectFieldDescriptor(Label="name", Tag=, Type=str), ]) index: 'uint' = 0 @@ -23829,10 +23689,8 @@ class ApplicationLauncherApp(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="catalogVendorId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="applicationId", Tag=2, Type=str), + ClusterObjectFieldDescriptor(Label="catalogVendorId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="applicationId", Tag=, Type=str), ]) catalogVendorId: 'uint' = 0 @@ -24244,22 +24102,14 @@ class SimpleStruct(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="a", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="b", Tag=2, Type=bool), - ClusterObjectFieldDescriptor( - Label="c", Tag=3, Type=TestCluster.Enums.SimpleEnum), - ClusterObjectFieldDescriptor( - Label="d", Tag=4, Type=bytes), - ClusterObjectFieldDescriptor( - Label="e", Tag=5, Type=str), - ClusterObjectFieldDescriptor( - Label="f", Tag=6, Type=uint), - ClusterObjectFieldDescriptor( - Label="g", Tag=7, Type=float), - ClusterObjectFieldDescriptor( - Label="h", Tag=8, Type=float), + ClusterObjectFieldDescriptor(Label="a", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="b", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="c", Tag=, Type=TestCluster.Enums.SimpleEnum), + ClusterObjectFieldDescriptor(Label="d", Tag=, Type=bytes), + ClusterObjectFieldDescriptor(Label="e", Tag=, Type=str), + ClusterObjectFieldDescriptor(Label="f", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="g", Tag=, Type=float), + ClusterObjectFieldDescriptor(Label="h", Tag=, Type=float), ]) a: 'uint' = 0 @@ -24277,30 +24127,18 @@ class NullablesAndOptionalsStruct(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="nullableInt", Tag=1, Type=typing.Union[Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="optionalInt", Tag=2, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalInt", Tag=3, Type=typing.Union[None, Nullable, uint]), - ClusterObjectFieldDescriptor( - Label="nullableString", Tag=4, Type=typing.Union[Nullable, str]), - ClusterObjectFieldDescriptor( - Label="optionalString", Tag=5, Type=typing.Optional[str]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalString", Tag=6, Type=typing.Union[None, Nullable, str]), - ClusterObjectFieldDescriptor( - Label="nullableStruct", Tag=7, Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="optionalStruct", Tag=8, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalStruct", Tag=9, Type=typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="nullableList", Tag=10, Type=typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor( - Label="optionalList", Tag=11, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), - ClusterObjectFieldDescriptor( - Label="nullableOptionalList", Tag=12, Type=typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="nullableInt", Tag=, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="optionalInt", Tag=, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="nullableOptionalInt", Tag=, Type=typing.Union[None, Nullable, uint]), + ClusterObjectFieldDescriptor(Label="nullableString", Tag=, Type=typing.Union[Nullable, str]), + ClusterObjectFieldDescriptor(Label="optionalString", Tag=, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="nullableOptionalString", Tag=, Type=typing.Union[None, Nullable, str]), + ClusterObjectFieldDescriptor(Label="nullableStruct", Tag=, Type=typing.Union[Nullable, TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="optionalStruct", Tag=, Type=typing.Optional[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableOptionalStruct", Tag=, Type=typing.Union[None, Nullable, TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="nullableList", Tag=, Type=typing.Union[Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="optionalList", Tag=, Type=typing.Optional[typing.List[TestCluster.Enums.SimpleEnum]]), + ClusterObjectFieldDescriptor(Label="nullableOptionalList", Tag=, Type=typing.Union[None, Nullable, typing.List[TestCluster.Enums.SimpleEnum]]), ]) nullableInt: 'typing.Union[Nullable, uint]' = NullValue @@ -24322,12 +24160,9 @@ class NestedStruct(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="a", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="b", Tag=2, Type=bool), - ClusterObjectFieldDescriptor( - Label="c", Tag=3, Type=TestCluster.Structs.SimpleStruct), + ClusterObjectFieldDescriptor(Label="a", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="b", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="c", Tag=, Type=TestCluster.Structs.SimpleStruct), ]) a: 'uint' = 0 @@ -24341,20 +24176,13 @@ class NestedStructList(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="a", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="b", Tag=2, Type=bool), - ClusterObjectFieldDescriptor( - Label="c", Tag=3, Type=TestCluster.Structs.SimpleStruct), - ClusterObjectFieldDescriptor( - Label="d", Tag=4, Type=typing.List[TestCluster.Structs.SimpleStruct]), - ClusterObjectFieldDescriptor( - Label="e", Tag=5, Type=typing.List[uint]), - ClusterObjectFieldDescriptor( - Label="f", Tag=6, Type=typing.List[bytes]), - ClusterObjectFieldDescriptor( - Label="g", Tag=7, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="a", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="b", Tag=, Type=bool), + ClusterObjectFieldDescriptor(Label="c", Tag=, Type=TestCluster.Structs.SimpleStruct), + ClusterObjectFieldDescriptor(Label="d", Tag=, Type=typing.List[TestCluster.Structs.SimpleStruct]), + ClusterObjectFieldDescriptor(Label="e", Tag=, Type=typing.List[uint]), + ClusterObjectFieldDescriptor(Label="f", Tag=, Type=typing.List[bytes]), + ClusterObjectFieldDescriptor(Label="g", Tag=, Type=typing.List[uint]), ]) a: 'uint' = 0 @@ -24373,8 +24201,7 @@ class DoubleNestedStructList(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="a", Tag=1, Type=typing.List[TestCluster.Structs.NestedStructList]), + ClusterObjectFieldDescriptor(Label="a", Tag=, Type=typing.List[TestCluster.Structs.NestedStructList]), ]) a: 'typing.List[TestCluster.Structs.NestedStructList]' = field( @@ -24386,10 +24213,8 @@ class TestListStructOctet(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="fabricIndex", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="operationalCert", Tag=2, Type=bytes), + ClusterObjectFieldDescriptor(Label="fabricIndex", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="operationalCert", Tag=, Type=bytes), ]) fabricIndex: 'uint' = 0 @@ -25705,7 +25530,7 @@ def attribute_id(cls) -> int: def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=bool) - value: 'bool' = None + value: 'bool' = False @dataclass class Unsupported(ClusterAttributeDescriptor): @@ -29659,16 +29484,11 @@ class GroupKey(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="vendorId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupKeyIndex", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupKeyRoot", Tag=3, Type=bytes), - ClusterObjectFieldDescriptor( - Label="groupKeyEpochStartTime", Tag=4, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupKeySecurityPolicy", Tag=5, Type=GroupKeyManagement.Enums.GroupKeySecurityPolicy), + ClusterObjectFieldDescriptor(Label="vendorId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="groupKeyIndex", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="groupKeyRoot", Tag=, Type=bytes), + ClusterObjectFieldDescriptor(Label="groupKeyEpochStartTime", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="groupKeySecurityPolicy", Tag=, Type=GroupKeyManagement.Enums.GroupKeySecurityPolicy), ]) vendorId: 'uint' = 0 @@ -29683,12 +29503,9 @@ class GroupState(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor( - Label="vendorId", Tag=1, Type=uint), - ClusterObjectFieldDescriptor( - Label="vendorGroupId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor( - Label="groupKeySetIndex", Tag=3, Type=uint), + ClusterObjectFieldDescriptor(Label="vendorId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="vendorGroupId", Tag=, Type=uint), + ClusterObjectFieldDescriptor(Label="groupKeySetIndex", Tag=, Type=uint), ]) vendorId: 'uint' = 0