HOTFIX: poll_inverter SELECT bez deye_zero_export_mode — KeyError zastavil inverter telemetrii všech lokalit
All checks were successful
CI and deploy / migration-check (push) Successful in 34s
CI and deploy / deploy (push) Successful in 1m10s

V100 rozšířil view i logiku, ale SELECT v collectoru zůstal bez nového
sloupce — row['deye_zero_export_mode'] padal každou minutu od deploye
287353b (~33 min výpadek inverter telemetrie; EV/pool jely dál v heartbeat
rytmu).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dusan Vojacek
2026-06-12 21:01:31 +02:00
parent 406b6a7f8f
commit 4ff5f7c3eb

View File

@@ -322,7 +322,7 @@ def _export_limit_flags_from_deye_regs(reg145: int | None, reg179: int | None) -
async def poll_inverter(site_id: int, db: asyncpg.Connection) -> None:
rows = await db.fetch(
"""
select inverter_id as id, code, host, port, unit_id
select inverter_id as id, code, host, port, unit_id, deye_zero_export_mode
from ems.vw_asset_inverter_modbus_poll
where site_id = $1
""",