mirror of
https://github.com/esphome/esphome.git
synced 2026-02-19 07:55:35 -07:00
- Return 400 for empty or whitespace-only file_name to prevent the idedata fallback from matching everything via empty-string suffix. - Use image.path.as_posix().endswith() since FlashImage.path is a Path object which does not have a string endswith method. - Add parametrized test for empty/whitespace file name values.