Skip to content

Commit

Permalink
add manufacturer information (squishykid#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimKraus authored Apr 23, 2022
1 parent 08e487f commit bb86b44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions solax/inverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(self, host, port, pwd=''):
self.host = host
self.port = port
self.pwd = pwd
self.manufacturer = "Solax"

async def get_data(self):
try:
Expand Down
4 changes: 4 additions & 0 deletions solax/inverters/qvolt_hyb_g3_3p.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def battery_modes(value, *_args, **_kwargs):
3: "Feed-in Priority",
}.get(value, f"unmapped value '{value}'")

def __init__(self, host, port, pwd=''):
super().__init__(host, port, pwd)
self.manufacturer = "Qcells"

_schema = vol.Schema({
vol.Required('type'): vol.All(int, 14),
vol.Required('sn'): str,
Expand Down

0 comments on commit bb86b44

Please sign in to comment.