1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

Added tmp102 temperature sensor support (#929)

* Added tmp102 temperature sensor support

* Added sensor to test3.yaml

* Moved docstring to component root

* Tweak formatting from clang-format script

* Removed extra newline at the end of the file to satisfy pylint

* Update schema to match that of other single-value sensors

In ESPHome, sensors that only expose one value do not put the sensor under another key.

* Add missing import

* Fix test after structural change to component

* removed unused setting

* Update esphome/components/tmp102/tmp102.cpp

Co-authored-by: Otto Winter <otto@otto-winter.com>
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Tim Savage
2020-10-27 05:00:43 +11:00
committed by GitHub
parent f034472e2a
commit d97a9bf8e8
5 changed files with 110 additions and 0 deletions

View File

@@ -375,6 +375,8 @@ sensor:
name: "PZEMDC Current"
power:
name: "PZEMDC Power"
- platform: tmp102
name: "TMP102 Temperature"
- platform: hm3301
pm_1_0:
name: "PM1.0"