mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Merge remote-tracking branch 'origin/dev' into nrf52_core
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/actions/build-image/action.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/actions/build-image/action.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -46,7 +46,7 @@ runs: | |||||||
|  |  | ||||||
|     - name: Build and push to ghcr by digest |     - name: Build and push to ghcr by digest | ||||||
|       id: build-ghcr |       id: build-ghcr | ||||||
|       uses: docker/build-push-action@v6.4.1 |       uses: docker/build-push-action@v6.5.0 | ||||||
|       with: |       with: | ||||||
|         context: . |         context: . | ||||||
|         file: ./docker/Dockerfile |         file: ./docker/Dockerfile | ||||||
| @@ -69,7 +69,7 @@ runs: | |||||||
|  |  | ||||||
|     - name: Build and push to dockerhub by digest |     - name: Build and push to dockerhub by digest | ||||||
|       id: build-dockerhub |       id: build-dockerhub | ||||||
|       uses: docker/build-push-action@v6.4.1 |       uses: docker/build-push-action@v6.5.0 | ||||||
|       with: |       with: | ||||||
|         context: . |         context: . | ||||||
|         file: ./docker/Dockerfile |         file: ./docker/Dockerfile | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								.github/workflows/ci-docker.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/ci-docker.yml
									
									
									
									
										vendored
									
									
								
							| @@ -46,9 +46,9 @@ jobs: | |||||||
|         with: |         with: | ||||||
|           python-version: "3.9" |           python-version: "3.9" | ||||||
|       - name: Set up Docker Buildx |       - name: Set up Docker Buildx | ||||||
|         uses: docker/setup-buildx-action@v3.4.0 |         uses: docker/setup-buildx-action@v3.5.0 | ||||||
|       - name: Set up QEMU |       - name: Set up QEMU | ||||||
|         uses: docker/setup-qemu-action@v3.1.0 |         uses: docker/setup-qemu-action@v3.2.0 | ||||||
|  |  | ||||||
|       - name: Set TAG |       - name: Set TAG | ||||||
|         run: | |         run: | | ||||||
|   | |||||||
							
								
								
									
										14
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -90,18 +90,18 @@ jobs: | |||||||
|           python-version: "3.9" |           python-version: "3.9" | ||||||
|  |  | ||||||
|       - name: Set up Docker Buildx |       - name: Set up Docker Buildx | ||||||
|         uses: docker/setup-buildx-action@v3.4.0 |         uses: docker/setup-buildx-action@v3.5.0 | ||||||
|       - name: Set up QEMU |       - name: Set up QEMU | ||||||
|         if: matrix.platform != 'linux/amd64' |         if: matrix.platform != 'linux/amd64' | ||||||
|         uses: docker/setup-qemu-action@v3.1.0 |         uses: docker/setup-qemu-action@v3.2.0 | ||||||
|  |  | ||||||
|       - name: Log in to docker hub |       - name: Log in to docker hub | ||||||
|         uses: docker/login-action@v3.2.0 |         uses: docker/login-action@v3.3.0 | ||||||
|         with: |         with: | ||||||
|           username: ${{ secrets.DOCKER_USER }} |           username: ${{ secrets.DOCKER_USER }} | ||||||
|           password: ${{ secrets.DOCKER_PASSWORD }} |           password: ${{ secrets.DOCKER_PASSWORD }} | ||||||
|       - name: Log in to the GitHub container registry |       - name: Log in to the GitHub container registry | ||||||
|         uses: docker/login-action@v3.2.0 |         uses: docker/login-action@v3.3.0 | ||||||
|         with: |         with: | ||||||
|           registry: ghcr.io |           registry: ghcr.io | ||||||
|           username: ${{ github.actor }} |           username: ${{ github.actor }} | ||||||
| @@ -184,17 +184,17 @@ jobs: | |||||||
|           merge-multiple: true |           merge-multiple: true | ||||||
|  |  | ||||||
|       - name: Set up Docker Buildx |       - name: Set up Docker Buildx | ||||||
|         uses: docker/setup-buildx-action@v3.4.0 |         uses: docker/setup-buildx-action@v3.5.0 | ||||||
|  |  | ||||||
|       - name: Log in to docker hub |       - name: Log in to docker hub | ||||||
|         if: matrix.registry == 'dockerhub' |         if: matrix.registry == 'dockerhub' | ||||||
|         uses: docker/login-action@v3.2.0 |         uses: docker/login-action@v3.3.0 | ||||||
|         with: |         with: | ||||||
|           username: ${{ secrets.DOCKER_USER }} |           username: ${{ secrets.DOCKER_USER }} | ||||||
|           password: ${{ secrets.DOCKER_PASSWORD }} |           password: ${{ secrets.DOCKER_PASSWORD }} | ||||||
|       - name: Log in to the GitHub container registry |       - name: Log in to the GitHub container registry | ||||||
|         if: matrix.registry == 'ghcr' |         if: matrix.registry == 'ghcr' | ||||||
|         uses: docker/login-action@v3.2.0 |         uses: docker/login-action@v3.3.0 | ||||||
|         with: |         with: | ||||||
|           registry: ghcr.io |           registry: ghcr.io | ||||||
|           username: ${{ github.actor }} |           username: ${{ github.actor }} | ||||||
|   | |||||||
| @@ -2,6 +2,15 @@ | |||||||
| # See https://pre-commit.com for more information | # See https://pre-commit.com for more information | ||||||
| # See https://pre-commit.com/hooks.html for more hooks | # See https://pre-commit.com/hooks.html for more hooks | ||||||
| repos: | repos: | ||||||
|  |   - repo: https://github.com/astral-sh/ruff-pre-commit | ||||||
|  |     # Ruff version. | ||||||
|  |     rev: v0.5.4 | ||||||
|  |     hooks: | ||||||
|  |       # Run the linter. | ||||||
|  |       - id: ruff | ||||||
|  |         args: [--fix] | ||||||
|  |       # Run the formatter. | ||||||
|  |       - id: ruff-format | ||||||
|   - repo: https://github.com/psf/black-pre-commit-mirror |   - repo: https://github.com/psf/black-pre-commit-mirror | ||||||
|     rev: 24.4.2 |     rev: 24.4.2 | ||||||
|     hooks: |     hooks: | ||||||
|   | |||||||
| @@ -45,8 +45,8 @@ void FanCall::validate_() { | |||||||
|     this->speed_ = clamp(*this->speed_, 1, traits.supported_speed_count()); |     this->speed_ = clamp(*this->speed_, 1, traits.supported_speed_count()); | ||||||
|  |  | ||||||
|   if (this->binary_state_.has_value() && *this->binary_state_) { |   if (this->binary_state_.has_value() && *this->binary_state_) { | ||||||
|     // when turning on, if current speed is zero, set speed to 100% |     // when turning on, if neither current nor new speed available, set speed to 100% | ||||||
|     if (traits.supports_speed() && !this->parent_.state && this->parent_.speed == 0) { |     if (traits.supports_speed() && !this->parent_.state && this->parent_.speed == 0 && !this->speed_.has_value()) { | ||||||
|       this->speed_ = traits.supported_speed_count(); |       this->speed_ = traits.supported_speed_count(); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -99,7 +99,7 @@ CONFIG_SCHEMA = cv.All( | |||||||
|             cv.Optional(CONF_FOLLOW_REDIRECTS, True): cv.boolean, |             cv.Optional(CONF_FOLLOW_REDIRECTS, True): cv.boolean, | ||||||
|             cv.Optional(CONF_REDIRECT_LIMIT, 3): cv.int_, |             cv.Optional(CONF_REDIRECT_LIMIT, 3): cv.int_, | ||||||
|             cv.Optional( |             cv.Optional( | ||||||
|                 CONF_TIMEOUT, default="5s" |                 CONF_TIMEOUT, default="4.5s" | ||||||
|             ): cv.positive_time_period_milliseconds, |             ): cv.positive_time_period_milliseconds, | ||||||
|             cv.SplitDefault(CONF_ESP8266_DISABLE_SSL_SUPPORT, esp8266=False): cv.All( |             cv.SplitDefault(CONF_ESP8266_DISABLE_SSL_SUPPORT, esp8266=False): cv.All( | ||||||
|                 cv.only_on_esp8266, cv.boolean |                 cv.only_on_esp8266, cv.boolean | ||||||
|   | |||||||
| @@ -80,7 +80,7 @@ class HttpRequestComponent : public Component { | |||||||
|   const char *useragent_{nullptr}; |   const char *useragent_{nullptr}; | ||||||
|   bool follow_redirects_; |   bool follow_redirects_; | ||||||
|   uint16_t redirect_limit_; |   uint16_t redirect_limit_; | ||||||
|   uint16_t timeout_{5000}; |   uint16_t timeout_{4500}; | ||||||
|   uint32_t watchdog_timeout_{0}; |   uint32_t watchdog_timeout_{0}; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user