ProtectedattributesProtected OptionalavailabilityProtectedconfigReadonlyentityProtectedentityProtected ReadonlysettingsProtectedstateProtectedwroteProtectedloggerProtectedmqttProtected_state_ProtecteddebugEmits an event without waiting for the listeners to finish.
ProtectedinitProtectedpublishRegister the entity within Home Assistant
Optionalevent: EventNameThis method will throw an error if the availability topic is not set
Update the text displayed by this sensor
Unregister the entity from Home Assistant
Writes the configuration to the MQTT broker
Implements an MQTT text for Home Assistant discovery