File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed
__k9_snapshots__/undoc_api Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ OneClickResponse {
59
59
sku: Some (
60
60
" H6072" ,
61
61
),
62
- topic: REDACTED ,
62
+ topic: Some (
63
+ REDACTED ,
64
+ ),
63
65
ble_address: Some (
64
66
" " ,
65
67
),
Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ OneClickResponse {
59
59
sku: Some (
60
60
" H6199" ,
61
61
),
62
- topic: REDACTED ,
62
+ topic: Some (
63
+ REDACTED ,
64
+ ),
63
65
ble_address: Some (
64
66
" XX:XX:XX" ,
65
67
),
@@ -165,7 +167,9 @@ OneClickResponse {
165
167
sku: Some (
166
168
" H6199" ,
167
169
),
168
- topic: REDACTED ,
170
+ topic: Some (
171
+ REDACTED ,
172
+ ),
169
173
ble_address: Some (
170
174
" XX:XX:XX" ,
171
175
),
Original file line number Diff line number Diff line change @@ -464,11 +464,10 @@ impl GoveeUndocumentedApi {
464
464
465
465
let mut entries = vec ! [ ] ;
466
466
for rule in oc. iot_rules {
467
- let msgs = rule. rule . into_iter ( ) . map ( |r| r. iot_msg ) . collect ( ) ;
468
- entries. push ( ParsedOneClickEntry {
469
- topic : rule. device_obj . topic ,
470
- msgs,
471
- } ) ;
467
+ if let Some ( topic) = rule. device_obj . topic {
468
+ let msgs = rule. rule . into_iter ( ) . map ( |r| r. iot_msg ) . collect ( ) ;
469
+ entries. push ( ParsedOneClickEntry { topic, msgs } ) ;
470
+ }
472
471
}
473
472
474
473
result. push ( ParsedOneClick { name, entries } ) ;
@@ -673,7 +672,7 @@ pub struct OneClickIotRuleDevice {
673
672
pub device : Option < String > ,
674
673
pub sku : Option < String > ,
675
674
676
- pub topic : Redacted < String > ,
675
+ pub topic : Option < Redacted < String > > ,
677
676
678
677
pub ble_address : Option < String > ,
679
678
pub ble_name : Option < String > ,
You can’t perform that action at this time.
0 commit comments