Skip to content

Commit

Permalink
Remove arrays from mappings.
Browse files Browse the repository at this point in the history
Support for arrays in mappings was added recently, but it is limited and does
not seem to be working in this context.
- remove non-error mappings from error.  The code recognizes 0 and null as non
  errors, and mapping them to readable values interferes with that.

Issue make-all#584
  • Loading branch information
make-all committed Apr 23, 2023
1 parent d82a8ef commit b5a8680
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ primary_entity:
name: error
optional: true
mapping:
- dps_val: [ null, 0 ]
value: OK
- dps_val: 1
value: cliff
- dps_val: 2
Expand All @@ -40,7 +38,11 @@ primary_entity:
name: status
optional: true
mapping:
- dps_val: [ null, SLEEP, CHARG_COMP ]
- dps_val: SLEEP
value: standby
- dps_val: CHARG_COMP
value: standby
- dps_val: null
value: standby
- dps_val: HALTING
value: paused
Expand All @@ -50,7 +52,9 @@ primary_entity:
value: cleaning_complete
- dps_val: FIND_STA
value: returning
- dps_val: [ CHARGING_STA, CHARGING_DC ]
- dps_val: CHARGING_STA
value: charging
- dps_val: CHARGING_DC
value: charging
- id: 102
type: string
Expand Down

0 comments on commit b5a8680

Please sign in to comment.