mirror of
https://github.com/esphome/esphome.git
synced 2025-09-19 19:52:20 +01:00
missing ifdef
This commit is contained in:
@@ -301,8 +301,10 @@ class APIConnection : public APIServerConnection {
|
|||||||
if (entity->has_own_name())
|
if (entity->has_own_name())
|
||||||
msg.name = entity->get_name();
|
msg.name = entity->get_name();
|
||||||
|
|
||||||
// Set common EntityBase properties
|
// Set common EntityBase properties
|
||||||
|
#ifdef USE_ENTITY_ICON
|
||||||
msg.icon = entity->get_icon();
|
msg.icon = entity->get_icon();
|
||||||
|
#endif
|
||||||
msg.disabled_by_default = entity->is_disabled_by_default();
|
msg.disabled_by_default = entity->is_disabled_by_default();
|
||||||
msg.entity_category = static_cast<enums::EntityCategory>(entity->get_entity_category());
|
msg.entity_category = static_cast<enums::EntityCategory>(entity->get_entity_category());
|
||||||
#ifdef USE_DEVICES
|
#ifdef USE_DEVICES
|
||||||
|
Reference in New Issue
Block a user