Deprecate virtual methods to set entity properties (#3021)

This commit is contained in:
Oxan van Leeuwen authored and GitHub committed 2022-01-10 13:32:39 +01:00
1 parent 41bcc8c0f4
commit 073828235f
12 files changed
+76 -32

No files matched your search

@@ -75,6 +75,7 @@ class BinarySensor : public EntityBase {
// ========== OVERRIDE METHODS ==========
// (You'll only need this when creating your own custom binary sensor)
/// Get the default device class for this sensor, or empty string for no default.
ESPDEPRECATED("device_class() is deprecated, set property during config validation instead.", "2022.01")
virtual std::string device_class();
protected: