Diagnostic text sensor that publishes the cached device name.
void setup() override
Register callbacks and schedule an initial name fetch.
void on_device_update_(const std::string &id, const IoDevice &dev)
Publish the current cached device name after a hub update.
void dump_config() override
Dump text-sensor configuration to the log.
float get_setup_priority() const override
Get setup priority so the parent hub is available first.
void set_parent(IOHomeControlComponent *parent)
Set the parent controller component.
void set_device_id(const std::string &id)
Set the device ID whose cached name this sensor exposes.