mirror of
https://github.com/esphome/esphome.git
synced 2025-09-26 15:12:21 +01:00
[api] Add conditional compilation for Home Assistant service subscriptions (#9900)
This commit is contained in:
@@ -137,6 +137,7 @@ class CustomAPIDevice {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_API_HOMEASSISTANT_SERVICES
|
||||
/** Call a Home Assistant service from ESPHome.
|
||||
*
|
||||
* Usage:
|
||||
@@ -221,6 +222,7 @@ class CustomAPIDevice {
|
||||
}
|
||||
global_api_server->send_homeassistant_service_call(resp);
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
} // namespace esphome::api
|
||||
|
Reference in New Issue
Block a user