mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-25 22:11:29 +01:00
Update api.rst - lambda example for condition connected (#4596)
This commit is contained in:
parent
8020bb8d7e
commit
79ace6b890
@ -295,6 +295,8 @@ if logs are shown remotely.
|
||||
then:
|
||||
- logger.log: API is connected!
|
||||
|
||||
The lambda equivalent for this is ``id(api_id).is_connected()``.
|
||||
|
||||
.. _api-device-actions:
|
||||
|
||||
User-defined Actions
|
||||
|
Loading…
Reference in New Issue
Block a user