Skip to content

Commit 5429ef7

Browse files
Bump version & format using ruff
1 parent 2347bc2 commit 5429ef7

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

custom_components/fusionsolarplus/api/devices/inverter_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ def _extract_optimizer_values(optimizer_data: list[dict]) -> dict[str, dict[str,
216216
return values
217217

218218

219-
def _normalize_signal_value(raw_value: Any, unit: Any, signal_name: str | None = None) -> Any:
219+
def _normalize_signal_value(
220+
raw_value: Any, unit: Any, signal_name: str | None = None
221+
) -> Any:
220222
if raw_value in ("N/A", "n/a", None):
221223
return None
222224

custom_components/fusionsolarplus/api/devices/plant_api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ def get_node_value(name: str):
123123
grid_val = grid_node.get("value")
124124
if grid_val is not None:
125125
is_export = any(
126-
lnk.get("toNode") == grid_id
127-
and lnk.get("flowing") == "FORWARD"
126+
lnk.get("toNode") == grid_id and lnk.get("flowing") == "FORWARD"
128127
for lnk in links
129128
)
130129
is_import = any(
@@ -269,4 +268,4 @@ def get_last_value(values: list, measurement_times: list) -> dict:
269268
def get_day_start_sec() -> int:
270269
start_today = time.strftime("%Y-%m-%d 00:00:00", time.gmtime())
271270
struct_time = time.strptime(start_today, "%Y-%m-%d %H:%M:%S")
272-
return round(time.mktime(struct_time) * 1000)
271+
return round(time.mktime(struct_time) * 1000)

custom_components/fusionsolarplus/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
"beautifulsoup4",
1414
"gradio_client"
1515
],
16-
"version": "2.2.17"
16+
"version": "2.3.0"
1717
}

0 commit comments

Comments
 (0)