-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from videojedi/main
libbi support
- Loading branch information
Showing
12 changed files
with
196 additions
and
25 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.0.28 | ||
0.0.29 |
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
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
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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-r requirements_dev.txt | ||
pytest-sugar==0.9.4 | ||
pytest-timeout==1.4.2 | ||
pytest-sugar==0.9.7 | ||
pytest-timeout==2.1.0 | ||
pytest-httpx | ||
pytest-xdist==2.2.1 | ||
pytest==6.2.4 | ||
pytest-xdist==3.3.1 | ||
pytest==7.4.2 | ||
pytest-asyncio |
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
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
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,41 @@ | ||
{ | ||
"sno": 24047164, | ||
"dat": "20-09-2023", | ||
"tim": "14: 53: 03", | ||
"ectp1": -457, | ||
"ectp2": -72, | ||
"ectp3": 0, | ||
"ectt1": "Internal Load", | ||
"ectt2": "Grid", | ||
"ectt3": "None", | ||
"ectp4": 0, | ||
"ectp5": 320, | ||
"ectt4": "None", | ||
"ectt5": "DCPV", | ||
"ectt6": "None", | ||
"dst": 1, | ||
"tz": 0, | ||
"lmo": "BALANCE", | ||
"sta": 6, | ||
"frq": 49.92, | ||
"pri": 1, | ||
"soc": 45, | ||
"isp": "True", | ||
"pha": 1, | ||
"vol": 2350, | ||
"mbc": 20400, | ||
"mic": 5000, | ||
"gen": 320, | ||
"grd": -38, | ||
"div": -457, | ||
"ect1p": 1, | ||
"ect2p": 1, | ||
"ect3p": 1, | ||
"batteryDischargingBoost": "False", | ||
"pvDirectlyConnected": "True", | ||
"g100LockoutState": "NONE", | ||
"cmt": 254, | ||
"fwv": "3702S5.041", | ||
"newAppAvailable": "False", | ||
"newBootloaderAvailable": "False" | ||
} |
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
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,11 @@ | ||
import pytest | ||
from pymyenergi.libbi import Libbi | ||
|
||
pytestmark = pytest.mark.asyncio | ||
|
||
|
||
async def test_refresh(libbi_fetch_data_fixture): | ||
"""Test Libbi data""" | ||
libbi = Libbi({}, 24047164) | ||
await libbi.refresh() | ||
assert libbi.serial_number == 24047164 |