async refreshAutoconf(component, payload) {
        if (!payload) {
            return;
        }

        await this.controller.publishHass(
            component.getAutoconfTopic(),
            JSON.stringify(payload),
            {qos: MqttCommonAttributes.QOS.AT_LEAST_ONCE, retain: true}
        );
    }
Refresh component's autoconf. This method is used by components internally, it shouldn't be called
externally.

@package
@param {import("./components/HassComponent")} component
@param {object} payload
@return {Promise<void>}