mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00: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:
		| @@ -146,7 +146,7 @@ def download_gfonts(value): | |||||||
|     if path.is_file(): |     if path.is_file(): | ||||||
|         return value |         return value | ||||||
|     try: |     try: | ||||||
|         req = requests.get(url) |         req = requests.get(url, timeout=30) | ||||||
|         req.raise_for_status() |         req.raise_for_status() | ||||||
|     except requests.exceptions.RequestException as e: |     except requests.exceptions.RequestException as e: | ||||||
|         raise cv.Invalid( |         raise cv.Invalid( | ||||||
| @@ -162,7 +162,7 @@ def download_gfonts(value): | |||||||
|  |  | ||||||
|     ttf_url = match.group(1) |     ttf_url = match.group(1) | ||||||
|     try: |     try: | ||||||
|         req = requests.get(ttf_url) |         req = requests.get(ttf_url, timeout=30) | ||||||
|         req.raise_for_status() |         req.raise_for_status() | ||||||
|     except requests.exceptions.RequestException as e: |     except requests.exceptions.RequestException as e: | ||||||
|         raise cv.Invalid(f"Could not download ttf file for {name} ({ttf_url}): {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): |     def dl(url): | ||||||
|         try: |         try: | ||||||
|             req = requests.get(url) |             req = requests.get(url, timeout=30) | ||||||
|             req.raise_for_status() |             req.raise_for_status() | ||||||
|         except requests.exceptions.RequestException as e: |         except requests.exceptions.RequestException as e: | ||||||
|             raise cv.Invalid(f"Could not download firmware file ({url}): {e}") |             raise cv.Invalid(f"Could not download firmware file ({url}): {e}") | ||||||
|   | |||||||
| @@ -823,7 +823,9 @@ class LoginHandler(BaseHandler): | |||||||
|             "password": self.get_argument("password", ""), |             "password": self.get_argument("password", ""), | ||||||
|         } |         } | ||||||
|         try: |         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: |             if req.status_code == 200: | ||||||
|                 self.set_secure_cookie("authenticated", cookie_authenticated_yes) |                 self.set_secure_cookie("authenticated", cookie_authenticated_yes) | ||||||
|                 self.redirect("/") |                 self.redirect("/") | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| pylint==2.14.5 | pylint==2.15.0 | ||||||
| flake8==5.0.4 | flake8==5.0.4 | ||||||
| black==22.6.0  # also change in .pre-commit-config.yaml when updating | 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 | pyupgrade==2.37.3  # also change in .pre-commit-config.yaml when updating | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user