diff --git a/esphome/components/cover/cover.h b/esphome/components/cover/cover.h index a7d017a64a..8b6f5b8a72 100644 --- a/esphome/components/cover/cover.h +++ b/esphome/components/cover/cover.h @@ -163,8 +163,6 @@ class Cover : public EntityBase, public EntityBase_DeviceClass { /// Helper method to check if the cover is fully closed. Equivalent to comparing .position against 0.0 bool is_fully_closed() const; - // Get the component type for this entity - protected: friend CoverCall; diff --git a/esphome/components/fan/fan.h b/esphome/components/fan/fan.h index f5eae5a03d..b74187eb4a 100644 --- a/esphome/components/fan/fan.h +++ b/esphome/components/fan/fan.h @@ -132,8 +132,6 @@ class Fan : public EntityBase { /// Set the restore mode of this fan. void set_restore_mode(FanRestoreMode restore_mode) { this->restore_mode_ = restore_mode; } - // Get the component type for this entity - protected: friend FanCall; diff --git a/esphome/components/sensor/sensor.h b/esphome/components/sensor/sensor.h index 15a7459db1..e6ec9b86d3 100644 --- a/esphome/components/sensor/sensor.h +++ b/esphome/components/sensor/sensor.h @@ -145,8 +145,6 @@ class Sensor : public EntityBase, public EntityBase_DeviceClass, public EntityBa */ std::string unique_id() override; - // Get the component type for this entity - void internal_send_state_to_frontend(float state); protected: diff --git a/esphome/components/switch/switch.h b/esphome/components/switch/switch.h index 2a0f59542e..b5395a2c83 100644 --- a/esphome/components/switch/switch.h +++ b/esphome/components/switch/switch.h @@ -112,8 +112,6 @@ class Switch : public EntityBase, public EntityBase_DeviceClass { void set_restore_mode(SwitchRestoreMode restore_mode) { this->restore_mode = restore_mode; } - // Get the component type for this entity - protected: /** Write the given state to hardware. You should implement this * abstract method if you want to create your own switch. diff --git a/esphome/components/text_sensor/text_sensor.h b/esphome/components/text_sensor/text_sensor.h index 5b7d1fdf43..fc7716fe0c 100644 --- a/esphome/components/text_sensor/text_sensor.h +++ b/esphome/components/text_sensor/text_sensor.h @@ -71,8 +71,6 @@ class TextSensor : public EntityBase, public EntityBase_DeviceClass { void internal_send_state_to_frontend(const std::string &state); - // Get the component type for this entity - protected: CallbackManager raw_callback_; ///< Storage for raw state callbacks. CallbackManager callback_; ///< Storage for filtered state callbacks.