Update custom.rst to include changes made in CoverTraits (#2944)

Update documentation to add changes made in https://github.com/esphome/esphome/pull/3897

traits.set_supports_stop(true) required now in the custom cover for stop button to be exposed.
This commit is contained in:
muddyfeet 2023-05-31 23:40:41 +10:00 committed by GitHub
parent b3fb5b3b84
commit 89451cbe46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,7 @@ two methods:
traits.set_is_assumed_state(false);
traits.set_supports_position(true);
traits.set_supports_tilt(false);
traits.set_supports_stop(true);
return traits;
}
void control(const CoverCall &call) override {