mirror of
https://github.com/esphome/esphome.git
synced 2026-08-26 16:10:29 +00:00
7e179e67954ee5cfa660f1abe261312ece1c7a61
UnicodeDecodeError is a ValueError, not an OSError, so a build_info.json with invalid UTF-8 bytes still crashed the compile; widening the tuple to (ValueError, OSError) also keeps JSONDecodeError covered. The staleness tests now use a two-run steady-state shape so the assertion can only pass when the comparison itself fires: run once to reach steady state, then damage the file (or bump the hash/version) and assert the second run regenerates it. The version test pins version.h so the bump is visible only to the JSON comparison; the non-UTF-8 test stubs the writes because regenerating over the damaged file needs write_file_if_changed's own recovery, which lands separately.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
577 MiB
Languages
C++
57.7%
Python
41.7%
C
0.3%
JavaScript
0.2%
