mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Feature add last_operation to time based cover (#6084)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
		| @@ -23,6 +23,7 @@ class TimeBasedCover : public cover::Cover, public Component { | |||||||
|   void set_has_built_in_endstop(bool value) { this->has_built_in_endstop_ = value; } |   void set_has_built_in_endstop(bool value) { this->has_built_in_endstop_ = value; } | ||||||
|   void set_manual_control(bool value) { this->manual_control_ = value; } |   void set_manual_control(bool value) { this->manual_control_ = value; } | ||||||
|   void set_assumed_state(bool value) { this->assumed_state_ = value; } |   void set_assumed_state(bool value) { this->assumed_state_ = value; } | ||||||
|  |   cover::CoverOperation get_last_operation() const { return this->last_operation_; } | ||||||
|  |  | ||||||
|  protected: |  protected: | ||||||
|   void control(const cover::CoverCall &call) override; |   void control(const cover::CoverCall &call) override; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user