Button code cleanup (#3242)

This commit is contained in:
Otto Winter
2022-02-20 21:17:51 +01:00
committed by GitHub
parent f59dbe4a88
commit d26141151a
2 changed files with 3 additions and 7 deletions
+2 -2
View File
@@ -45,12 +45,12 @@ class Button : public EntityBase {
protected:
/** You should implement this virtual method if you want to create your own button.
*/
virtual void press_action(){};
virtual void press_action() = 0;
uint32_t hash_base() override;
CallbackManager<void()> press_callback_{};
optional<std::string> device_class_{};
std::string device_class_{};
};
} // namespace button