Skip to content

Commit

Permalink
Ran isort and fixed flake8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Dos Moonen committed Jan 26, 2024
1 parent 34f9589 commit 5205fa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion solax/inverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ def schema(cls) -> vol.Schema:
return cls._schema

def __str__(self) -> str:
return f"{self.__class__.__name__} :: {self.http_client}"
return f"{self.__class__.__name__}::{self.http_client}"
8 changes: 4 additions & 4 deletions tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
X1_HYBRID_G4_VALUES,
X1_MINI_VALUES,
X1_MINI_VALUES_V34,
X1_MINI_VALUES_V34_VER3,
X1_SMART_VALUES,
X1_VALUES,
X3_HYBRID_G4_VALUES,
Expand All @@ -19,7 +20,6 @@
X3V34_HYBRID_VALUES_EPS_MODE,
X3V34_HYBRID_VALUES_NEGATIVE_POWER,
XHYBRID_VALUES,
X1_MINI_VALUES_V34_VER3,
)
from tests.samples.responses import (
QVOLTHYBG33P_RESPONSE_V34,
Expand All @@ -29,6 +29,7 @@
X1_HYBRID_G3_RESPONSE,
X1_HYBRID_G4_RESPONSE,
X1_MINI_RESPONSE_V34,
X1_MINI_RESPONSE_V34_VER3,
X1_SMART_RESPONSE,
X3_HYBRID_G3_2X_MPPT_RESPONSE,
X3_HYBRID_G3_2X_MPPT_RESPONSE_V34,
Expand All @@ -40,7 +41,6 @@
X3_MICPRO_G2_RESPONSE,
XHYBRID_DE01_RESPONSE,
XHYBRID_DE02_RESPONSE,
X1_MINI_RESPONSE_V34_VER3,
)

X_FORWARDED_HEADER = {"X-Forwarded-For": "5.8.8.8"}
Expand Down Expand Up @@ -244,9 +244,9 @@ def simple_http_fixture(httpserver):
uri="/",
method="POST",
query_string=None,
response=X1_MINI_RESPONSE_V34,
response=X1_MINI_RESPONSE_V34_VER3,
inverter=inverter.X1MiniV34,
values=X1_MINI_VALUES_V34,
values=X1_MINI_VALUES_V34_VER3,
headers=None,
data="optType=ReadRealTimeData",
),
Expand Down

0 comments on commit 5205fa9

Please sign in to comment.