mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-01 02:28:28 +02:00
Allow dashboard import to pull complete file from github (#3982)
This commit is contained in:
@@ -416,6 +416,10 @@ class ImportRequestHandler(BaseHandler):
|
||||
self.set_status(500)
|
||||
self.write("File already exists")
|
||||
return
|
||||
except ValueError:
|
||||
self.set_status(422)
|
||||
self.write("Invalid package url")
|
||||
return
|
||||
|
||||
self.set_status(200)
|
||||
self.finish()
|
||||
|
||||
Reference in New Issue
Block a user