mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 11:44:13 +01:00
ed801f7a27
* Add cpu_temperature component * Add tests * Fix formatting * Possible fix for "sensor not shown in HomeAssistant" * Rename component to internal_temperature * Update esphome/components/internal_temperature/internal_temperature.cpp Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl> * Update esphome/components/internal_temperature/internal_temperature.cpp Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl> * Update esphome/components/internal_temperature/internal_temperature.cpp Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl> * Update internal_temperature.h * Remove unique_id * Update ESP32 variant detection --------- Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
17 lines
366 B
C++
17 lines
366 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/sensor/sensor.h"
|
|
|
|
namespace esphome {
|
|
namespace internal_temperature {
|
|
|
|
class InternalTemperatureSensor : public sensor::Sensor, public PollingComponent {
|
|
public:
|
|
void dump_config() override;
|
|
|
|
void update() override;
|
|
};
|
|
|
|
} // namespace internal_temperature
|
|
} // namespace esphome
|