mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
[lvgl] Fix ImageValidator.process signature to match base (#17451)
This commit is contained in:
@@ -398,7 +398,10 @@ class ImageValidator(LValidator):
|
||||
)
|
||||
|
||||
async def process(
|
||||
self, value: Any, args: list[tuple[SafeExpType, str]] | None = None
|
||||
self,
|
||||
value: Any,
|
||||
args: list[tuple[SafeExpType, str]] | None = None,
|
||||
raw_lambda: bool = False,
|
||||
) -> Expression:
|
||||
# Local import to avoid circular import at module level
|
||||
from .lvcode import get_lambda_context_args
|
||||
@@ -419,7 +422,7 @@ class ImageValidator(LValidator):
|
||||
index = await metadata.from_.convert_value(index)
|
||||
return mapping_var.get(index)
|
||||
|
||||
return await super().process(value, args)
|
||||
return await super().process(value, args, raw_lambda)
|
||||
|
||||
|
||||
lv_image = ImageValidator()
|
||||
|
||||
Reference in New Issue
Block a user