mirror of
https://github.com/esphome/esphome.git
synced 2025-08-02 00:17:48 +00:00
missing ifdef
This commit is contained in:
parent
512cc24dc7
commit
8593da7426
@ -302,7 +302,9 @@ class APIConnection : public APIServerConnection {
|
||||
msg.name = entity->get_name();
|
||||
|
||||
// Set common EntityBase properties
|
||||
#ifdef USE_ENTITY_ICON
|
||||
msg.icon = entity->get_icon();
|
||||
#endif
|
||||
msg.disabled_by_default = entity->is_disabled_by_default();
|
||||
msg.entity_category = static_cast<enums::EntityCategory>(entity->get_entity_category());
|
||||
#ifdef USE_DEVICES
|
||||
|
Loading…
x
Reference in New Issue
Block a user