<filename>esphome/components/xiaomi_miscale2/sensor.py
import esphome.config_validation as cv

CONFIG_SCHEMA = cv.invalid(
    "This platform has been combined into xiaomi_miscale. Use xiaomi_miscale instead."
)

<filename>esphome/components/xiaomi_miscale2/sensor.py
import esphome.config_validation as cv

CONFIG_SCHEMA = cv.invalid(
    "This platform has been combined into xiaomi_miscale. Use xiaomi_miscale instead."
)
