Display: fix class inherence in Python script (#6009)

This commit is contained in:
NP v/d Spek 2023-12-24 14:58:27 +01:00 committed by Jesse Hills
parent 7bce999bba
commit b68420b2cc
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -18,8 +18,8 @@ from esphome.core import coroutine_with_priority
IS_PLATFORM_COMPONENT = True
display_ns = cg.esphome_ns.namespace("display")
Display = display_ns.class_("Display")
DisplayBuffer = display_ns.class_("DisplayBuffer")
Display = display_ns.class_("Display", cg.PollingComponent)
DisplayBuffer = display_ns.class_("DisplayBuffer", Display)
DisplayPage = display_ns.class_("DisplayPage")
DisplayPagePtr = DisplayPage.operator("ptr")
DisplayRef = Display.operator("ref")