mirror of
https://github.com/esphome/esphome.git
synced 2026-05-09 21:28:40 +08:00
rename-target-collision-safety
Codecov flagged the path-equality branch (return 1 when `<config_dir>/<new_name>.yaml` resolves to the source file) as uncovered after the recent same-name guard was added: the new `new_name == old_name` check above intercepts the cases the existing tests exercised, leaving the path-equality branch unreachable from the rest of the suite. Add a dedicated test (`kitchen.yaml` holding `esphome.name: garage`, renamed to `kitchen`) where the names differ but the resolved target path equals the source. Pins the branch and the "already the device's name" message + non-call of run_external_process.
…
…
…
…
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
682 MiB
Languages
C++
61.9%
Python
37.5%
C
0.3%
JavaScript
0.2%
