diff --git a/esphome/components/ds248x/ds248x.h b/esphome/components/ds248x/ds248x.h index 1d4c42713c..4e0f73b4f6 100644 --- a/esphome/components/ds248x/ds248x.h +++ b/esphome/components/ds248x/ds248x.h @@ -5,7 +5,7 @@ #include "esphome/components/sensor/sensor.h" #include "esphome/components/i2c/i2c.h" -#define NBR_CHANNELS 8 +static const uint8_t NBR_CHANNELS = 8; namespace esphome {