mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
b78bca0dc74871da8ea62db84818a22c65ca06c5
- _read_etag collapses into a single try/except that handles both stat and read failures (and the unlink) uniformly. - _mtime_seconds() helper compares mtimes at whole-second resolution instead of nanoseconds. Sub-second precision varies by filesystem (FAT does 2s, NTFS 100ns, APFS/ext4 ns); whole seconds is the only resolution every supported filesystem can preserve through a set+read round-trip. - has_remote_file_changed: walrus-assign `etag` and `new_etag` instead of an explicit binding + immediate check. - New test fixtures `mock_requests_head`, `mock_requests_get`, `mock_has_remote_file_changed`, `mock_write_file` replace the per-test `@patch(...)` decorator stacks. Tests are simpler and the fixtures can be reused by future tests in the file.
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
546 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
