1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 20:32:21 +01:00

Allow RC522 components to have multiple configurations (#1782)

This commit is contained in:
Jesse Hills
2021-05-15 17:02:52 +12:00
committed by GitHub
parent 3d6dcc9eee
commit 7e3b8fd346
4 changed files with 11 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ from esphome.const import CONF_ID
CODEOWNERS = ["@glmnet"]
DEPENDENCIES = ["i2c"]
AUTO_LOAD = ["rc522"]
MULTI_CONF = True
rc522_i2c_ns = cg.esphome_ns.namespace("rc522_i2c")
RC522I2C = rc522_i2c_ns.class_("RC522I2C", rc522.RC522, i2c.I2CDevice)