Add cover toggle support to current based cover (#3950)

This commit is contained in:
maringeph
2022-11-09 21:40:13 +01:00
committed by GitHub
parent 3d927c2f44
commit dc17c47634
3 changed files with 21 additions and 0 deletions
@@ -89,6 +89,8 @@ class CurrentBasedCover : public cover::Cover, public Component {
uint32_t start_dir_time_{0};
uint32_t last_publish_time_{0};
float target_position_{0};
cover::CoverOperation last_operation_{cover::COVER_OPERATION_OPENING};
};
} // namespace current_based