Skip to content

Commit

Permalink
Solve issue with latest version of esphome ( [(display.DisplayBufferR…
Browse files Browse the repository at this point in the history
…ef, "it")], return_type=cg.void; AttributeError: module 'esphome.components.display' has no attribute 'DisplayBufferRef')
  • Loading branch information
idefxH committed Oct 23, 2023
1 parent 6625935 commit 4d2b745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/components/lilygo_t5_47/display/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def to_code(config):

if CONF_LAMBDA in config:
lambda_ = await cg.process_lambda(
config[CONF_LAMBDA], [(display.DisplayBufferRef, "it")], return_type=cg.void
config[CONF_LAMBDA], [(display.DisplayRef, "it")], return_type=cg.void
)
cg.add(var.set_writer(lambda_))

Expand Down

1 comment on commit 4d2b745

@johanneslotz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

Please sign in to comment.