mirror of
https://github.com/esphome/esphome.git
synced 2026-02-24 20:35:30 -07:00
Merge branch 'version-cpp17-namespace' into integration
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
#include "esphome/core/helpers.h"
|
||||
#include "esphome/core/progmem.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace version {
|
||||
namespace esphome::version {
|
||||
|
||||
static const char *const TAG = "version.text_sensor";
|
||||
|
||||
@@ -36,5 +35,4 @@ void VersionTextSensor::setup() {
|
||||
void VersionTextSensor::set_hide_timestamp(bool hide_timestamp) { this->hide_timestamp_ = hide_timestamp; }
|
||||
void VersionTextSensor::dump_config() { LOG_TEXT_SENSOR("", "Version Text Sensor", this); }
|
||||
|
||||
} // namespace version
|
||||
} // namespace esphome
|
||||
} // namespace esphome::version
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/components/text_sensor/text_sensor.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace version {
|
||||
namespace esphome::version {
|
||||
|
||||
class VersionTextSensor : public text_sensor::TextSensor, public Component {
|
||||
public:
|
||||
@@ -16,5 +15,4 @@ class VersionTextSensor : public text_sensor::TextSensor, public Component {
|
||||
bool hide_timestamp_{false};
|
||||
};
|
||||
|
||||
} // namespace version
|
||||
} // namespace esphome
|
||||
} // namespace esphome::version
|
||||
|
||||
Reference in New Issue
Block a user