Fix pm1006 polling component definition (#3210)

This commit is contained in:
mipa87 2022-02-17 21:47:31 +01:00 committed by GitHub
parent 8cb9be7560
commit ccce4b19e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,9 @@ CODEOWNERS = ["@habbie"]
DEPENDENCIES = ["uart"]
pm1006_ns = cg.esphome_ns.namespace("pm1006")
PM1006Component = pm1006_ns.class_("PM1006Component", uart.UARTDevice, cg.Component)
PM1006Component = pm1006_ns.class_(
"PM1006Component", uart.UARTDevice, cg.PollingComponent
)
CONFIG_SCHEMA = cv.All(