AbstractOptionalonConnect: (client: MqttClient) => voidProtectedattributesProtected OptionalavailabilityProtectedconfigReadonlyentityProtectedentityProtected ReadonlysettingsProtectedstateProtectedwroteProtectedloggerProtectedmqttProtected_state_ProtecteddebugProtectedgenerateProtectedinitRegister the entity within Home Assistant
This method will throw an error if the availability topic is not set
Unregister the entity from Home Assistant
Writes the configuration to the MQTT broker
Base class for making MQTT discoverable objects