Skip to content

validate: limit the size of a pack and refuse duplicate entries - #6

Merged
beabel merged 1 commit into
mainfrom
check/size-and-duplicates
Dec 5, 2026
Merged

beabel merged 1 commit into
mainfrom
check/size-and-duplicates

Conversation

@beabel

@beabel beabel commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

The gateway accepts a pack of at most 256 KB compressed. Today the largest packs are about 105 KB, but every imported manual makes them grow (the heat pump lists added about 50 KB), so the limit is checked in CI now.

  • A pack above 180 KB compressed is a warning, above 240 KB an error.
  • Entries with the same code, additional code, scope, class and text are an error (for example a list imported twice). Entries that differ in the class or the text stay allowed as variants.
  • FORMAT.md describes both rules and the entry without an additional code (see the WebUI change in emsesp/EMS-ESP32).

All lists on main pass without a warning. Tested with a copy that has a duplicate entry and low limits.

A pack above 180 KB compressed is a warning, above 240 KB an error (the gateway accepts 256 KB). Entries with the same code, additional code, scope, class and text are an error.
@beabel
beabel merged commit a448438 into main Dec 5, 2026
2 checks passed
@beabel
beabel deleted the check/size-and-duplicates branch December 5, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant