diff --git a/esphome/components/sgp40/sensor.py b/esphome/components/sgp40/sensor.py index cb4231c168..ad9de6fe24 100644 --- a/esphome/components/sgp40/sensor.py +++ b/esphome/components/sgp40/sensor.py @@ -2,7 +2,7 @@ import esphome.config_validation as cv CODEOWNERS = ["@SenexCrenshaw"] -CONFIG_SCHEMA = CONFIG_SCHEMA = cv.invalid( +CONFIG_SCHEMA = cv.invalid( "SGP40 is deprecated.\nPlease use the SGP4x platform instead.\nSGP4x supports both SPG40 and SGP41.\n" " See https://esphome.io/components/sensor/sgp4x.html" )