mirror of
https://github.com/esphome/esphome.git
synced 2026-08-29 17:16:45 +00:00
Merge branch 'esp8266-native-shared-helpers' into esp8266-native-build-surgery
This commit is contained in:
@@ -463,6 +463,9 @@ def check_library_data(data: dict, platform: str | None, framework: str):
|
||||
if isinstance(platforms, str):
|
||||
platforms = [a.strip() for a in platforms.split(",")]
|
||||
platforms = ensure_list(platforms)
|
||||
if not all(isinstance(pf, str) for pf in platforms):
|
||||
# A real (non-platform) manifest problem; callers warn, not skip
|
||||
raise InvalidLibrary(f"Malformed platforms value: {platforms!r}")
|
||||
|
||||
# Check if library supports the target platform
|
||||
valid_platforms = platform is None or "*" in platforms or platform in platforms
|
||||
@@ -474,6 +477,8 @@ def check_library_data(data: dict, platform: str | None, framework: str):
|
||||
if isinstance(frameworks, str):
|
||||
frameworks = [a.strip() for a in frameworks.split(",")]
|
||||
frameworks = ensure_list(frameworks)
|
||||
if not all(isinstance(fw, str) for fw in frameworks):
|
||||
raise InvalidLibrary(f"Malformed frameworks value: {frameworks!r}")
|
||||
|
||||
# Check if library declares the active framework. PIO library manifests
|
||||
# often list only "arduino" even when the library actually compiles fine
|
||||
|
||||
Reference in New Issue
Block a user