1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-02 18:12:20 +01:00
This commit is contained in:
J. Nick Koston
2025-06-21 13:35:32 +02:00
parent 63de88dd57
commit 32088d5ef7

View File

@@ -301,6 +301,9 @@ class APIConnection : public APIServerConnection {
response.icon = entity->get_icon();
response.disabled_by_default = entity->is_disabled_by_default();
response.entity_category = static_cast<enums::EntityCategory>(entity->get_entity_category());
#ifdef USE_SUB_DEVICE
response.device_id = entity->get_device_id();
#endif
}
// Helper function to fill common entity state fields