Drop deprecated entity property base methods (#4539)

This commit is contained in:
Oxan van Leeuwen
2023-03-09 01:08:45 +01:00
committed by GitHub
parent afc1c83af4
commit ba1416cc0e
6 changed files with 7 additions and 68 deletions

View File

@@ -80,14 +80,6 @@ class BinarySensor : public EntityBase {
virtual bool is_status_binary_sensor() const;
// ========== OVERRIDE METHODS ==========
// (You'll only need this when creating your own custom binary sensor)
/** Override this to set the default device class.
*
* @deprecated This method is deprecated, set the property during config validation instead. (2022.1)
*/
virtual std::string device_class();
protected:
CallbackManager<void(bool)> state_callback_{};
optional<std::string> device_class_{}; ///< Stores the override of the device class