mirror of
https://github.com/esphome/esphome.git
synced 2025-09-12 16:22:22 +01:00
Sun support (#531)
* Sun * Add sun support * Lint * Updates * Fix elevation * Lint * Update mqtt_climate.cpp
This commit is contained in:
@@ -254,6 +254,18 @@ template<typename T> class Deduplicator {
|
||||
T last_value_{};
|
||||
};
|
||||
|
||||
template<typename T> class Parented {
|
||||
public:
|
||||
Parented() {}
|
||||
Parented(T *parent) : parent_(parent) {}
|
||||
|
||||
T *get_parent() const { return parent_; }
|
||||
void set_parent(T *parent) { parent_ = parent; }
|
||||
|
||||
protected:
|
||||
T *parent_{nullptr};
|
||||
};
|
||||
|
||||
uint32_t fnv1_hash(const std::string &str);
|
||||
|
||||
} // namespace esphome
|
||||
|
Reference in New Issue
Block a user