3e959b3df9
Everything a user sees or reads is now English: both boards' labels, status replies and logs, the ESP Screens editor and Alerts cheatsheet, and the README and guides (docs/TILES.md, CALIBRATING.md, ACCEPTANCE.md and TROUBLESHOOTING.md replace the Dutch file names). Labels follow Home Assistant's own English names (Heat/Cool modes, Heating/Cooling actions, Away, Returning to dock, weather conditions), dates use English abbreviations and the top bar writes numbers the English way. Docs use HA 2026.9's menu names (Settings -> Apps, App store, Settings -> Tools). Unused legacy files (home-like.yaml, buttons.yaml, a.out) are removed. Firmware 0.2.34 names its entities in English. Home Assistant registers a renamed ESPHome entity under a new entity ID, so the inbox text.<screen>_tegelinstellingen becomes text.<screen>_tile_settings and the layout stored under the old ID would be lost. The manager now recognises the screen by its device, during a run or after a restart, and moves its layout and update history along; the Update button and the nightly round follow the screen through the rename. Screens that still run 0.2.33 or older keep working: both languages are matched. Main is the only release branch from now on. Tested on a Home Assistant Yellow (HA 2026.9.1) with both bench boards: see docs/TEST_RESULTS_0240.md. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
14 lines
628 B
C++
14 lines
628 B
C++
#include "components/smart_display/tile_palette.h"
|
|
#include <cassert>
|
|
int main() {
|
|
assert(tile_palette::color("auto")==0);
|
|
assert(tile_palette::color("")==0);
|
|
assert(tile_palette::color("unknown-future-choice")==0);
|
|
assert(tile_palette::color("red")!=0);
|
|
assert(tile_palette::color("green")!=tile_palette::color("red"));
|
|
// "None" is not a colour: the card is hidden, and old firmware falls back to automatic.
|
|
assert(tile_palette::color("none")==0);
|
|
assert(tile_palette::transparent("none"));
|
|
assert(!tile_palette::transparent("auto") && !tile_palette::transparent("red") && !tile_palette::transparent(""));
|
|
}
|