From 9951a837f1ffdab8d8471f0f851267be0e7d8d20 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 16:17:31 +0000 Subject: [PATCH] [pre-commit.ci lite] apply automatic fixes --- esphome/espota2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphome/espota2.py b/esphome/espota2.py index abf56ed67a3..e50b748e987 100644 --- a/esphome/espota2.py +++ b/esphome/espota2.py @@ -65,7 +65,9 @@ SERVER_FEATURE_SUPPORTS_PARTITION_ACCESS = 0x02 # OTA types this client knows how to send. Future PRs that add bootloader/partition # updates extend this set. Anything outside the set is rejected up front so callers # of perform_ota/run_ota get a clear error instead of a post-auth 0x8E from the device. -_SUPPORTED_OTA_TYPES: frozenset[int] = frozenset({OTA_TYPE_UPDATE_APP, OTA_TYPE_UPDATE_PARTITION_TABLE}) +_SUPPORTED_OTA_TYPES: frozenset[int] = frozenset( + {OTA_TYPE_UPDATE_APP, OTA_TYPE_UPDATE_PARTITION_TABLE} +) UPLOAD_BLOCK_SIZE = 8192 UPLOAD_BUFFER_SIZE = UPLOAD_BLOCK_SIZE * 8