From 908500d35f0389f0a545553ce9b1dcd0323f8495 Mon Sep 17 00:00:00 2001 From: vevsvevs Date: Sun, 11 Oct 2020 05:22:39 +0300 Subject: [PATCH] Add files via upload --- esphome/components/atc_mithermometer/atc_mithermometer.cpp | 1 - esphome/components/atc_mithermometer/sensor.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/atc_mithermometer/atc_mithermometer.cpp b/esphome/components/atc_mithermometer/atc_mithermometer.cpp index 2840a74f7e..a372b9f037 100644 --- a/esphome/components/atc_mithermometer/atc_mithermometer.cpp +++ b/esphome/components/atc_mithermometer/atc_mithermometer.cpp @@ -75,7 +75,6 @@ optional ATCMiThermometer::parse_header(const esp32_ble_tracker::Se } bool ATCMiThermometer::parse_message(const std::vector &message, ParseResult &result) { - // Byte 0-5 mac in correct order // Byte 6-7 Temperature in uint16 // Byte 8 Humidity in percent diff --git a/esphome/components/atc_mithermometer/sensor.py b/esphome/components/atc_mithermometer/sensor.py index d42d99675e..d83e176547 100644 --- a/esphome/components/atc_mithermometer/sensor.py +++ b/esphome/components/atc_mithermometer/sensor.py @@ -1,8 +1,9 @@ import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import sensor, esp32_ble_tracker -from esphome.const import CONF_BATTERY_LEVEL, CONF_BATTERY_VOLTAGE, CONF_HUMIDITY, CONF_MAC_ADDRESS, CONF_TEMPERATURE, \ - UNIT_CELSIUS, ICON_THERMOMETER, UNIT_PERCENT, ICON_WATER_PERCENT, UNIT_VOLT, ICON_BATTERY, CONF_ID +from esphome.const import CONF_BATTERY_LEVEL, CONF_BATTERY_VOLTAGE, CONF_MAC_ADDRESS, \ + CONF_HUMIDITY, CONF_TEMPERATURE, CONF_ID, UNIT_CELSIUS, UNIT_PERCENT, UNIT_VOLT, \ + ICON_BATTERY, ICON_THERMOMETER, ICON_WATER_PERCENT DEPENDENCIES = ['esp32_ble_tracker']