Update index.rst (#3103)

The code parameter is an optional. Without "std::string("1234")" compilation fails.
This commit is contained in:
blackscreener 2023-08-03 19:53:50 +02:00 committed by GitHub
parent 50fd45f073
commit a9143309d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ From :ref:`lambdas <config-lambda>`, you can call the following methods:
id(acp1).arm_away();
id(acp1).arm_home();
id(acp1).disarm("1234");
id(acp1).disarm(std::string("1234"));
Platforms