1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-10 15:22:24 +01:00

Replace name and friendly name in full adopted configs (#4456)

This commit is contained in:
Jesse Hills
2024-03-18 13:00:59 +13:00
committed by GitHub
parent 8fd10d6859
commit 687553a285
3 changed files with 68 additions and 66 deletions

View File

@@ -516,7 +516,8 @@ class ImportRequestHandler(BaseHandler):
self.set_status(500)
self.write("File already exists")
return
except ValueError:
except ValueError as e:
_LOGGER.error(e)
self.set_status(422)
self.write("Invalid package url")
return