@@ -3647,7 +3647,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp
3647
3647
}
3648
3648
}
3649
3649
3650
- suspend fun readAutoRelockTimeAttribute (): UInt? {
3650
+ suspend fun readAutoRelockTimeAttribute (): UInt {
3651
3651
val ATTRIBUTE_ID : UInt = 35u
3652
3652
3653
3653
val attributePath =
@@ -3673,12 +3673,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp
3673
3673
3674
3674
// Decode the TLV data into the appropriate type
3675
3675
val tlvReader = TlvReader (attributeData.data)
3676
- val decodedValue: UInt? =
3677
- if (tlvReader.isNextTag(AnonymousTag )) {
3678
- tlvReader.getUInt(AnonymousTag )
3679
- } else {
3680
- null
3681
- }
3676
+ val decodedValue: UInt = tlvReader.getUInt(AnonymousTag )
3682
3677
3683
3678
return decodedValue
3684
3679
}
@@ -3764,14 +3759,9 @@ class DoorLockCluster(private val controller: MatterController, private val endp
3764
3759
3765
3760
// Decode the TLV data into the appropriate type
3766
3761
val tlvReader = TlvReader (attributeData.data)
3767
- val decodedValue: UInt? =
3768
- if (tlvReader.isNextTag(AnonymousTag )) {
3769
- tlvReader.getUInt(AnonymousTag )
3770
- } else {
3771
- null
3772
- }
3762
+ val decodedValue: UInt = tlvReader.getUInt(AnonymousTag )
3773
3763
3774
- decodedValue?. let { emit(UIntSubscriptionState .Success (it)) }
3764
+ emit(UIntSubscriptionState .Success (decodedValue))
3775
3765
}
3776
3766
SubscriptionState .SubscriptionEstablished -> {
3777
3767
emit(UIntSubscriptionState .SubscriptionEstablished )
0 commit comments