Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.1
rev: v0.16.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.3.0
rev: v2.3.1
hooks:
- id: mypy
args: [--config-file=pyproject.toml]
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ async with aiohttp.ClientSession() as session:
client = SolarEdgeWeb(username, password, site_id, session)

# --- site facts (all cached until the next login) ---
equipment = await client.async_get_equipment() # inverters, strings, optimizers
components = await client.async_get_site_components() # hasConsumptionAndGrid, hasStorage, ...
equipment = await client.async_get_equipment() # inverters, strings, optimizers
components = await client.async_get_site_components() # hasConsumptionAndGrid, hasStorage, ...
information = await client.async_get_site_information() # peakPower, siteTimeZone, ...
availability = await client.async_get_data_availability()
details = await client.async_get_site_details()
Expand Down Expand Up @@ -45,8 +45,8 @@ async with aiohttp.ClientSession() as session:
inverter_power = await client.async_get_inverter_power()

# --- per-device diagnostics ---
optimizers = await client.async_get_optimizer_data() # live W, V, A per optimizer
inverters = await client.async_get_inverter_data() # live readings and firmware
optimizers = await client.async_get_optimizer_data() # live W, V, A per optimizer
inverters = await client.async_get_inverter_data() # live readings and firmware
temperatures = await client.async_get_optimizer_temperatures() # max degrees C

# --- everything else ---
Expand Down
Loading