1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

Add CODEOWNER

This commit is contained in:
Andrew J.Swan 2025-02-21 12:11:02 +02:00
parent a08970659c
commit aff853e411
2 changed files with 7 additions and 2 deletions

View File

@ -321,6 +321,7 @@ esphome/components/pcf8563/* @KoenBreeman
esphome/components/pid/* @OttoWinter
esphome/components/pipsolar/* @andreashergert1984
esphome/components/pm1006/* @habbie
esphome/components/pm2005/* @andrewjswan
esphome/components/pmsa003i/* @sjtrny
esphome/components/pmwcs3/* @SeByDocKy
esphome/components/pn532/* @OttoWinter @jesserockz

View File

@ -21,7 +21,9 @@ DEPENDENCIES = ["i2c"]
CODEOWNERS = ["@andrewjswan"]
pm2005_ns = cg.esphome_ns.namespace("pm2005")
PM2005Component = pm2005_ns.class_("PM2005Component", cg.PollingComponent, i2c.I2CDevice)
PM2005Component = pm2005_ns.class_(
"PM2005Component", cg.PollingComponent, i2c.I2CDevice
)
TYPE_2005 = "PM2005"
TYPE_2105 = "PM2105"
@ -35,7 +37,9 @@ CONFIG_SCHEMA = cv.All(
cv.Schema(
{
cv.GenerateID(): cv.declare_id(PM2005Component),
cv.Optional(CONF_TYPE, default=TYPE_2005): cv.one_of(*SENSOR_TYPE, upper=True),
cv.Optional(CONF_TYPE, default=TYPE_2005): cv.one_of(
*SENSOR_TYPE, upper=True
),
cv.Optional(CONF_PM_1_0): sensor.sensor_schema(
unit_of_measurement=UNIT_MICROGRAMS_PER_CUBIC_METER,
icon=ICON_CHEMICAL_WEAPON,