mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 19:06:37 +00:00
Fix
This commit is contained in:
@@ -77,7 +77,7 @@ def ota_esphome_final_validate(config):
|
|||||||
merged_ota_esphome_configs_by_port[conf_port] = merge_config(
|
merged_ota_esphome_configs_by_port[conf_port] = merge_config(
|
||||||
merged_ota_esphome_configs_by_port[conf_port], ota_conf
|
merged_ota_esphome_configs_by_port[conf_port], ota_conf
|
||||||
)
|
)
|
||||||
if config[CONF_ALLOW_PARTITION_ACCESS] and not CORE.is_esp32:
|
if config.get(CONF_ALLOW_PARTITION_ACCESS, False) and not CORE.is_esp32:
|
||||||
raise cv.Invalid(
|
raise cv.Invalid(
|
||||||
f"{CONF_ALLOW_PARTITION_ACCESS} is only supported on the esp32"
|
f"{CONF_ALLOW_PARTITION_ACCESS} is only supported on the esp32"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -274,8 +274,8 @@ def test_perform_ota_successful_md5_auth(
|
|||||||
assert mock_socket.sendall.call_args_list[1] == call(
|
assert mock_socket.sendall.call_args_list[1] == call(
|
||||||
bytes(
|
bytes(
|
||||||
[
|
[
|
||||||
espota2.FEATURE_SUPPORTS_COMPRESSION
|
espota2.CLIENT_FEATURE_SUPPORTS_COMPRESSION
|
||||||
| espota2.FEATURE_SUPPORTS_SHA256_AUTH
|
| espota2.CLIENT_FEATURE_SUPPORTS_SHA256_AUTH
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -644,8 +644,8 @@ def test_perform_ota_successful_sha256_auth(
|
|||||||
assert mock_socket.sendall.call_args_list[1] == call(
|
assert mock_socket.sendall.call_args_list[1] == call(
|
||||||
bytes(
|
bytes(
|
||||||
[
|
[
|
||||||
espota2.FEATURE_SUPPORTS_COMPRESSION
|
espota2.CLIENT_FEATURE_SUPPORTS_COMPRESSION
|
||||||
| espota2.FEATURE_SUPPORTS_SHA256_AUTH
|
| espota2.CLIENT_FEATURE_SUPPORTS_SHA256_AUTH
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -699,8 +699,8 @@ def test_perform_ota_sha256_fallback_to_md5(
|
|||||||
assert mock_socket.sendall.call_args_list[1] == call(
|
assert mock_socket.sendall.call_args_list[1] == call(
|
||||||
bytes(
|
bytes(
|
||||||
[
|
[
|
||||||
espota2.FEATURE_SUPPORTS_COMPRESSION
|
espota2.CLIENT_FEATURE_SUPPORTS_COMPRESSION
|
||||||
| espota2.FEATURE_SUPPORTS_SHA256_AUTH
|
| espota2.CLIENT_FEATURE_SUPPORTS_SHA256_AUTH
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user