mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-06 21:09:53 +02:00
add xiaomi BLE Thermometer lywsd02 model support (#664)
* add xiaomi BLE Thermometer lywsd02 model support * remove battery level * Update sensor.py to pass the lint test https://github.com/esphome/esphome/pull/664 * fix trailing space Co-authored-by: Guoxue <gx@m15.cn> Co-authored-by: mr G1K <mr@g1k.ru>
This commit is contained in:
@@ -9,7 +9,7 @@ namespace esphome {
|
||||
namespace xiaomi_ble {
|
||||
|
||||
struct XiaomiParseResult {
|
||||
enum { TYPE_MIJIA, TYPE_MIFLORA } type;
|
||||
enum { TYPE_MIJIA, TYPE_MIFLORA, TYPE_LYWSD02 } type;
|
||||
optional<float> temperature;
|
||||
optional<float> humidity;
|
||||
optional<float> battery_level;
|
||||
|
||||
Reference in New Issue
Block a user