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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user