mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 02:04:13 +01:00
Bump pylint from 2.14.5 to 2.15.0 (#3746)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
71697df2b6
commit
2650441013
4 changed files with 7 additions and 5 deletions
|
@ -146,7 +146,7 @@ def download_gfonts(value):
|
|||
if path.is_file():
|
||||
return value
|
||||
try:
|
||||
req = requests.get(url)
|
||||
req = requests.get(url, timeout=30)
|
||||
req.raise_for_status()
|
||||
except requests.exceptions.RequestException as e:
|
||||
raise cv.Invalid(
|
||||
|
@ -162,7 +162,7 @@ def download_gfonts(value):
|
|||
|
||||
ttf_url = match.group(1)
|
||||
try:
|
||||
req = requests.get(ttf_url)
|
||||
req = requests.get(ttf_url, timeout=30)
|
||||
req.raise_for_status()
|
||||
except requests.exceptions.RequestException as e:
|
||||
raise cv.Invalid(f"Could not download ttf file for {name} ({ttf_url}): {e}")
|
||||
|
|
|
@ -73,7 +73,7 @@ def get_firmware(value):
|
|||
|
||||
def dl(url):
|
||||
try:
|
||||
req = requests.get(url)
|
||||
req = requests.get(url, timeout=30)
|
||||
req.raise_for_status()
|
||||
except requests.exceptions.RequestException as e:
|
||||
raise cv.Invalid(f"Could not download firmware file ({url}): {e}")
|
||||
|
|
|
@ -823,7 +823,9 @@ class LoginHandler(BaseHandler):
|
|||
"password": self.get_argument("password", ""),
|
||||
}
|
||||
try:
|
||||
req = requests.post("http://supervisor/auth", headers=headers, data=data)
|
||||
req = requests.post(
|
||||
"http://supervisor/auth", headers=headers, data=data, timeout=30
|
||||
)
|
||||
if req.status_code == 200:
|
||||
self.set_secure_cookie("authenticated", cookie_authenticated_yes)
|
||||
self.redirect("/")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
pylint==2.14.5
|
||||
pylint==2.15.0
|
||||
flake8==5.0.4
|
||||
black==22.6.0 # also change in .pre-commit-config.yaml when updating
|
||||
pyupgrade==2.37.3 # also change in .pre-commit-config.yaml when updating
|
||||
|
|
Loading…
Reference in a new issue