mirror of
https://github.com/esphome/esphome.git
synced 2026-01-13 05:27:53 -07:00
[api] Device defined action responses (#12136)
Co-authored-by: J. Nick Koston <nick@home-assistant.io> Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
@@ -75,10 +75,12 @@ async def test_api_string_lambda(
|
||||
assert char_ptr_service is not None, "test_char_ptr_lambda service not found"
|
||||
|
||||
# Execute all four services to test different lambda return types
|
||||
client.execute_service(string_service, {"input_string": "STRING_FROM_LAMBDA"})
|
||||
client.execute_service(int_service, {"input_number": 42})
|
||||
client.execute_service(float_service, {"input_float": 3.14})
|
||||
client.execute_service(
|
||||
await client.execute_service(
|
||||
string_service, {"input_string": "STRING_FROM_LAMBDA"}
|
||||
)
|
||||
await client.execute_service(int_service, {"input_number": 42})
|
||||
await client.execute_service(float_service, {"input_float": 3.14})
|
||||
await client.execute_service(
|
||||
char_ptr_service, {"input_number": 123, "input_string": "test_string"}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user