Skip to content

Commit

Permalink
tidy up PR27SB commands
Browse files Browse the repository at this point in the history
remove commands returning 0
  • Loading branch information
BenediktSeidl committed Oct 14, 2021
1 parent d5fcb1a commit e2a7ec8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion prpd_usb/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

MODEL_TO_COMMANDS = {
"PR37Bi": ["7105", "7104", "7103", "7005", "7001", "7101", "7004", "7003"],
"PR37SB": ["7001", "7002", "7003", "7004", "7005", "7101", "7102", "7103", "7104", "7105"],
"PR37SB": ["7001", "7002", "7003", "7004", "7101", "7102", "7103", "7104"],
"PR50SB": ["7104", "7103", "7001", "7101", "7004", "7003", "7002", "7102"],
}

Expand Down
11 changes: 1 addition & 10 deletions tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,12 @@ def test_pr37sb():
"solar": {
"current_string_1": 5.78,
"current_string_2": 5.86,
"status": 16,
"status": 61507,
"total": 20722671,
"total_phase_1": 0,
"total_phase_2": 0,
"total_phase_3": 0,
"total_string_1": 10168204,
"total_string_2": 10554467,
"va_phase_1": 0,
"va_phase_2": 0,
"va_phase_3": 0,
"voltage_string_1": 189.09,
"voltage_string_2": 185.01,
"w_phase_1": 0,
"w_phase_2": 0,
"w_phase_3": 0,
},
}

Expand Down

0 comments on commit e2a7ec8

Please sign in to comment.