1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 13:22:19 +01:00

Mark unique_id() override as deprecated (#4538)

This commit is contained in:
Oxan van Leeuwen
2023-03-09 01:06:20 +01:00
committed by GitHub
parent da056866ff
commit afc1c83af4
2 changed files with 6 additions and 3 deletions

View File

@@ -61,6 +61,10 @@ class TextSensor : public EntityBase {
// ========== INTERNAL METHODS ==========
// (In most use cases you won't need these)
/** Override this method to set the unique ID of this sensor.
*
* @deprecated Do not use for new sensors, a suitable unique ID is automatically generated (2023.4).
*/
virtual std::string unique_id();
bool has_state();