-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Sensor definitions.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"""Test sensor definitions.""" | ||
|
||
from sunsynk.definitions import import_defs | ||
|
||
|
||
def test_import_defs() -> None: | ||
"""Test importing sensors.""" | ||
libs = ( | ||
"single_phase", | ||
"three_phase_hv", | ||
"three_phase_lv", | ||
) | ||
for lib in libs: | ||
defs = import_defs(lib) | ||
assert len(defs.all) > 50 | ||
assert defs.rated_power |