diff --git a/esphome/components/api/list_entities.h b/esphome/components/api/list_entities.h index 0b4d1bc1e1..5b3a445699 100644 --- a/esphome/components/api/list_entities.h +++ b/esphome/components/api/list_entities.h @@ -12,7 +12,7 @@ class APIConnection; // Macro for generating ListEntitiesIterator handlers // Calls schedule_message_ with try_send_*_info #define LIST_ENTITIES_HANDLER(entity_type, EntityClass, ResponseType) \ - bool ListEntitiesIterator::on_##entity_type((EntityClass) *entity) { \ + bool ListEntitiesIterator::on_##entity_type(EntityClass *entity) { \ return this->client_->schedule_message_(entity, &APIConnection::try_send_##entity_type##_info, \ ResponseType::MESSAGE_TYPE); \ } diff --git a/esphome/components/api/subscribe_state.h b/esphome/components/api/subscribe_state.h index 1b3bb34134..588a0464eb 100644 --- a/esphome/components/api/subscribe_state.h +++ b/esphome/components/api/subscribe_state.h @@ -13,7 +13,7 @@ class APIConnection; // Macro for generating InitialStateIterator handlers // Calls send_*_state #define INITIAL_STATE_HANDLER(entity_type, EntityClass) \ - bool InitialStateIterator::on_##entity_type((EntityClass) *entity) { \ + bool InitialStateIterator::on_##entity_type(EntityClass *entity) { \ return this->client_->send_##entity_type##_state(entity); \ }