mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 19:32:19 +01:00
Update esphome/components/sensor/sensor.h
This commit is contained in:
@@ -15,7 +15,6 @@ namespace sensor {
|
|||||||
// Forward declaration
|
// Forward declaration
|
||||||
void log_sensor(const char *tag, const char *prefix, const char *type, Sensor *obj);
|
void log_sensor(const char *tag, const char *prefix, const char *type, Sensor *obj);
|
||||||
|
|
||||||
// Macro that calls the function - kept for backward compatibility
|
|
||||||
#define LOG_SENSOR(prefix, type, obj) log_sensor(TAG, prefix, LOG_STR_LITERAL(type), obj)
|
#define LOG_SENSOR(prefix, type, obj) log_sensor(TAG, prefix, LOG_STR_LITERAL(type), obj)
|
||||||
|
|
||||||
#define SUB_SENSOR(name) \
|
#define SUB_SENSOR(name) \
|
||||||
|
Reference in New Issue
Block a user