esphome/esphome/components/xiaomi_miscale2/sensor.py
Robert Resch f1364d4af4
Combine code of xiaomi_miscale and xiaomi_miscale2 (#2266)
* Combine xiaomi_miscale and xiaomi_miscale2

* check if message contains impedance

* auto detect scale version

* remove xiaomi_miscale2

* fix lint errors

* Apply suggestions from code review

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>

* Apply suggestions from code review on old code

* Fix clang-tidy warnings

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2021-09-22 12:12:55 +02:00

5 lines
157 B
Python

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